|
@@ -72,6 +72,16 @@ public class UserController {
|
|
|
Pagination<UserEntity> pages = new Pagination<>(iPage);
|
|
|
return new AjaxMessage<>(ResultStatus.OK, pages);
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 查询
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "获取当前登录用户信息")
|
|
|
+ @RequestMapping(value = "/findLoginUserById", method = RequestMethod.POST)
|
|
|
+ public AjaxMessage<UserEntity> findLoginUserById() {
|
|
|
+ LoginUser currentUser = UserUtil.getCurrentUser();
|
|
|
+ UserEntity userEntity = userService.findUserById(Long.valueOf(currentUser.getId()));
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK, userEntity);
|
|
|
+ }
|
|
|
/**
|
|
|
* 查询
|
|
|
*/
|