1
0
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:
GGB
2023-05-31 15:08:12 +08:00
parent b3ef7f855e
commit e0e09fcd25
6 changed files with 113 additions and 38 deletions

View File

@@ -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());