remove customize verification method

This commit is contained in:
myh 2023-12-10 22:54:06 +08:00
parent 21fe0db209
commit 1dda90a1c8
3 changed files with 1 additions and 6 deletions

View File

@ -2,7 +2,6 @@ package com.example.springdemo.controller;
import com.example.springdemo.entities.RBAC.Permissions;
import com.example.springdemo.service.PermissionsService;
import com.example.springdemo.utils.RoleVerificationAnnotation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;
@ -11,7 +10,6 @@ import java.util.Optional;
@RestController
@RequestMapping("/permissions")
@RoleVerificationAnnotation(UserIDList = {1})
public class PermissionsController {
@Resource
private PermissionsService permissionsService;

View File

@ -2,14 +2,12 @@ package com.example.springdemo.controller;
import com.example.springdemo.entities.RBAC.Roles;
import com.example.springdemo.service.RolesService;
import com.example.springdemo.utils.RoleVerificationAnnotation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Optional;
@RoleVerificationAnnotation(UserIDList = {1})
@RestController
@RequestMapping("/roles")
public class RolesController {

View File

@ -2,14 +2,13 @@ package com.example.springdemo.controller;
import com.example.springdemo.entities.RBAC.RolesPermissions;
import com.example.springdemo.service.RolesPermissionsService;
import com.example.springdemo.utils.RoleVerificationAnnotation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import java.util.Optional;
@RoleVerificationAnnotation(UserIDList = {1})
@RestController
@RequestMapping("/rolesPermissions")
public class RolesPermissionsController {