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

Fixed token to large error

This commit is contained in:
2023-05-23 02:29:36 +08:00
parent f87df23ea1
commit bd44024c29
7 changed files with 40 additions and 28 deletions

View File

@@ -33,6 +33,12 @@ public class UserController {
this.userService = userService;
}
@GetMapping("/info")
@Operation(summary = "获取当前用户信息")
public ResponseResult<User> getInfo() {
return ResponseResult.databaseSelectSuccess(userService.getInfo());
}
@GetMapping
@PreAuthorize("hasAnyAuthority('system:user:all', 'system:user:add', 'system:user:modify')")
@Operation(summary = "获取所有用户(权限管理相关)")