From 4cbfd00319d722adb3e28411c77f7fa540f6417b Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Sun, 24 Aug 2025 19:31:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E/member/profile=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../circle/other/adapter/app/team/TeamRestController.java | 8 ++++++++ .../other/app/command/team/query/TeamEntryTeamQryExe.java | 6 ++++++ .../circle/other/app/service/team/TeamServiceImpl.java | 5 +++++ .../red/circle/other/app/service/team/TeamService.java | 7 +++++++ 4 files changed, 26 insertions(+) diff --git a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/team/TeamRestController.java b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/team/TeamRestController.java index 2aab2eba..5f7d16a8 100644 --- a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/team/TeamRestController.java +++ b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/team/TeamRestController.java @@ -83,6 +83,14 @@ public class TeamRestController extends BaseController { return teamService.getMemberRole(cmd); } + /** + * 获取用户信息 + */ + @GetMapping("/member/profile") + public UserProfileDTO getMemberProfile(AppIdStringCmd cmd) { + return teamService.getMemberProfile(cmd); + } + /** * 获取团队成员列表. * diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/query/TeamEntryTeamQryExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/query/TeamEntryTeamQryExe.java index 977ac1bb..6dbf93c7 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/query/TeamEntryTeamQryExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/team/query/TeamEntryTeamQryExe.java @@ -2,6 +2,7 @@ package com.red.circle.other.app.command.team.query; import com.google.common.collect.Maps; import com.red.circle.common.business.dto.cmd.AppExtCommand; +import com.red.circle.common.business.dto.cmd.app.AppIdLongCmd; import com.red.circle.framework.core.asserts.ResponseAssert; import com.red.circle.other.app.convertor.team.TeamAppConvertor; import com.red.circle.other.app.convertor.user.UserProfileAppConvertor; @@ -89,4 +90,9 @@ public class TeamEntryTeamQryExe { ); } + public UserProfileDTO getMemberProfile(AppExtCommand cmd) { + return userProfileAppConvertor.toUserProfileDTO( + userProfileGateway.getByUserId(cmd.getReqUserId())); + } + } diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/team/TeamServiceImpl.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/team/TeamServiceImpl.java index a1cfc28d..8a93132c 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/team/TeamServiceImpl.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/team/TeamServiceImpl.java @@ -118,6 +118,11 @@ public class TeamServiceImpl implements TeamService { return teamMemberRoleQryExe.execute(cmd); } + @Override + public UserProfileDTO getMemberProfile(AppExtCommand cmd) { + return teamEntryTeamQryExe.getMemberProfile(cmd); + } + @Override public List listTeamMember(AppIdLongCmd cmd) { return teamMemberListQryExe.execute(cmd); diff --git a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/service/team/TeamService.java b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/service/team/TeamService.java index 07ea1dcc..8102f9ff 100644 --- a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/service/team/TeamService.java +++ b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/service/team/TeamService.java @@ -48,6 +48,13 @@ public interface TeamService { */ String getMemberRole(AppIdLongCmd cmd); + /** + * 用户信息 + * @param cmd + * @return + */ + UserProfileDTO getMemberProfile(AppExtCommand cmd); + /** * 获取团队成员. */