1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-04 22:41:24 +08:00

Added permission control for AffairManagement

This commit is contained in:
2023-05-24 23:53:27 +08:00
parent c060a762af
commit 7aabfec604
8 changed files with 128 additions and 2 deletions

View File

@@ -39,6 +39,13 @@ public class UserController {
return ResponseResult.databaseSelectSuccess(userService.getInfo());
}
@GetMapping("/affair")
@PreAuthorize("hasAuthority('affair:self:add')")
@Operation(summary = "获取拥有审批权限的用户")
public ResponseResult<List<User>> getAffairUser() {
return ResponseResult.databaseSelectSuccess(userService.getAffairUser());
}
@GetMapping
@PreAuthorize("hasAnyAuthority('system:user:all', 'system:user:add', 'system:user:modify')")
@Operation(summary = "获取所有用户(权限管理相关)")