【7.1.1】用户基本信息获取增加真实姓名

pull/22/head
fengshuonan 2021-07-29 21:50:03 +08:00
parent d046db20be
commit de762eda6a
2 changed files with 9 additions and 0 deletions

View File

@ -66,6 +66,12 @@ public class CurrentUserInfoResponse {
@ChineseDescription("昵称")
private String nickname;
/**
*
*/
@ChineseDescription("用户姓名")
private String realName;
/**
* url
*/

View File

@ -157,6 +157,9 @@ public class UserLoginInfoFactory {
// 设置用户昵称
currentUserInfoResponse.setNickname(loginUser.getSimpleUserInfo().getNickName());
// 姓名
currentUserInfoResponse.setRealName(loginUser.getSimpleUserInfo().getRealName());
// 设置头像并获取头像的url
Long avatarFileId = loginUser.getSimpleUserInfo().getAvatar();
String userAvatarUrl = sysUserService.getUserAvatarUrl(avatarFileId, loginUser.getToken());