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

Added api /user/department

This commit is contained in:
2023-05-29 08:35:49 +08:00
parent fed1594fc3
commit d773913d2c
8 changed files with 63 additions and 4 deletions

View File

@@ -46,6 +46,13 @@ public class UserController {
return ResponseResult.databaseSelectSuccess(userService.getAffairUser());
}
@GetMapping("/department")
@PreAuthorize("hasAuthority('attendance:manage:modify')")
@Operation(summary = "获取同部门下所有用户")
public ResponseResult<List<User>> getDepartmentUser() {
return ResponseResult.databaseSaveSuccess(userService.getDepartmentUser());
}
@GetMapping
@PreAuthorize("hasAnyAuthority('system:user:all', 'system:user:add', 'system:user:modify')")
@Operation(summary = "获取所有用户(权限管理相关)")