From de762eda6a85fa01172d129ad031b5cf35b62e52 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Thu, 29 Jul 2021 21:50:03 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=907.1.1=E3=80=91=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=9C=9F=E5=AE=9E=E5=A7=93=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/api/pojo/login/CurrentUserInfoResponse.java | 6 ++++++ .../system/modular/user/factory/UserLoginInfoFactory.java | 3 +++ 2 files changed, 9 insertions(+) diff --git a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/pojo/login/CurrentUserInfoResponse.java b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/pojo/login/CurrentUserInfoResponse.java index 8d05c5f3e..5d1a8d7ca 100644 --- a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/pojo/login/CurrentUserInfoResponse.java +++ b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/system/api/pojo/login/CurrentUserInfoResponse.java @@ -66,6 +66,12 @@ public class CurrentUserInfoResponse { @ChineseDescription("昵称") private String nickname; + /** + * 用户姓名 + */ + @ChineseDescription("用户姓名") + private String realName; + /** * 用户头像(url) */ diff --git a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/factory/UserLoginInfoFactory.java b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/factory/UserLoginInfoFactory.java index 6ccda1d58..81e0f98fb 100644 --- a/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/factory/UserLoginInfoFactory.java +++ b/kernel-s-system/system-business-user/src/main/java/cn/stylefeng/roses/kernel/system/modular/user/factory/UserLoginInfoFactory.java @@ -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());