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.entities.RBAC.Permissions;
|
||||||
import com.example.springdemo.service.PermissionsService;
|
import com.example.springdemo.service.PermissionsService;
|
||||||
import com.example.springdemo.utils.RoleVerificationAnnotation;
|
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
@ -11,7 +10,6 @@ import java.util.Optional;
|
|||||||
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/permissions")
|
@RequestMapping("/permissions")
|
||||||
@RoleVerificationAnnotation(UserIDList = {1})
|
|
||||||
public class PermissionsController {
|
public class PermissionsController {
|
||||||
@Resource
|
@Resource
|
||||||
private PermissionsService permissionsService;
|
private PermissionsService permissionsService;
|
||||||
|
@ -2,14 +2,12 @@ package com.example.springdemo.controller;
|
|||||||
|
|
||||||
import com.example.springdemo.entities.RBAC.Roles;
|
import com.example.springdemo.entities.RBAC.Roles;
|
||||||
import com.example.springdemo.service.RolesService;
|
import com.example.springdemo.service.RolesService;
|
||||||
import com.example.springdemo.utils.RoleVerificationAnnotation;
|
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
@RoleVerificationAnnotation(UserIDList = {1})
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/roles")
|
@RequestMapping("/roles")
|
||||||
public class RolesController {
|
public class RolesController {
|
||||||
|
@ -2,14 +2,13 @@ package com.example.springdemo.controller;
|
|||||||
|
|
||||||
import com.example.springdemo.entities.RBAC.RolesPermissions;
|
import com.example.springdemo.entities.RBAC.RolesPermissions;
|
||||||
import com.example.springdemo.service.RolesPermissionsService;
|
import com.example.springdemo.service.RolesPermissionsService;
|
||||||
import com.example.springdemo.utils.RoleVerificationAnnotation;
|
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
@RoleVerificationAnnotation(UserIDList = {1})
|
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/rolesPermissions")
|
@RequestMapping("/rolesPermissions")
|
||||||
public class RolesPermissionsController {
|
public class RolesPermissionsController {
|
||||||
|
Loading…
Reference in New Issue
Block a user