mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 23:11:24 +08:00
Add note cards and update work card layout
This commit is contained in:
@@ -41,14 +41,14 @@ public class UserController {
|
||||
}
|
||||
|
||||
@GetMapping("/affair")
|
||||
@PreAuthorize("hasAuthority('affair:self:add')")
|
||||
@PreAuthorize("hasAnyAuthority('affair:self:add')")
|
||||
@Operation(summary = "获取拥有审批权限的用户")
|
||||
public ResponseResult<List<User>> getAffairUser() {
|
||||
return ResponseResult.databaseSelectSuccess(userService.getAffairUser());
|
||||
}
|
||||
|
||||
@GetMapping("/department")
|
||||
@PreAuthorize("hasAuthority('attendance:manage:modify')")
|
||||
@PreAuthorize("hasAnyAuthority('work:manage:add', 'work:admin:add', 'attendance:manage:modify')")
|
||||
@Operation(summary = "获取同部门下所有用户")
|
||||
public ResponseResult<List<User>> getDepartmentUser() {
|
||||
return ResponseResult.databaseSaveSuccess(userService.getDepartmentUser());
|
||||
|
||||
Reference in New Issue
Block a user