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); + /** * 获取团队成员. */