remove customize verification method
This commit is contained in:
parent
21fe0db209
commit
1dda90a1c8
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user