Commit 05425b4a authored by ma's avatar ma

新增获取用户信息接口

parent 4d9a0baf
...@@ -245,6 +245,23 @@ public class UserController { ...@@ -245,6 +245,23 @@ public class UserController {
} }
} }
/**
* 查询用户
*
* @return
*/
@ApiOperation(value = "获取用户信息接口", notes = "获取用户信息")
@GetMapping("get")
@MyLog(title = "获取用户信息", businessType = BusinessType.SELECT)
public ResResult<User> getUserPermissionList() {
String userId = UserUtils.getLoginUserId();
if (StringUtils.isEmpty(userId)) {
return ResResult.failed().setMsgValue("请重新登录");
}
User user = userService.getUserById(Integer.parseInt(userId));
return ResResult.success().goRecord(user);
}
/** /**
* 分页查询所有的user * 分页查询所有的user
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment