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

modify AffairController

This commit is contained in:
assina045
2023-05-18 19:52:37 +08:00
parent ff22d02bbb
commit 0f36884afb
2 changed files with 31 additions and 38 deletions

View File

@@ -39,6 +39,16 @@ public class AffairController {
return ResponseResult.build(ResponseCode.DATABASE_SAVE_OK, "success", affairService.save(affair));
}
@GetMapping("/add/getUser")
public ResponseResult getUser() {
List<User> userList = (List<User>)userController.getAllUser().getData();
return ResponseResult.build(ResponseCode.DATABASE_SELECT_OK,"success",userList);
}//获取数据库中所有用户
@GetMapping("/add/getCurrentUser")
public ResponseResult getCurrentUser() {
return ResponseResult.build(ResponseCode.DATABASE_SELECT_OK,"success",WebUtil.getLoginUser().getUser());
}//获取当前用户