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