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:
@@ -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 = "获取所有用户(权限管理相关)")
|
||||
|
||||
Reference in New Issue
Block a user