mirror of https://gitee.com/stylefeng/roses
【7.1.1】用户基本信息获取增加真实姓名
parent
d046db20be
commit
de762eda6a
|
@ -66,6 +66,12 @@ public class CurrentUserInfoResponse {
|
|||
@ChineseDescription("昵称")
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 用户姓名
|
||||
*/
|
||||
@ChineseDescription("用户姓名")
|
||||
private String realName;
|
||||
|
||||
/**
|
||||
* 用户头像(url)
|
||||
*/
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue