diff --git a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/user/user/UserProfileRestController.java b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/user/user/UserProfileRestController.java index 30460b87..a286ff04 100644 --- a/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/user/user/UserProfileRestController.java +++ b/rc-service/rc-service-other/other-adapter/src/main/java/com/red/circle/other/adapter/app/user/user/UserProfileRestController.java @@ -89,6 +89,14 @@ public class UserProfileRestController extends BaseController { return userProfileService.getUserProfile(cmd); } + /** + * 账号搜索开放接口 + */ + @GetMapping("/open-search") + public UserProfileDTO openSearch(AccountQryCmd cmd) { + return userProfileService.getUserOpenProfile(cmd); + } + /** * @eo.name 获取用户卡片: 用于资料卡片查询,不同系统之间不允许访问 * @eo.url /card diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/user/UserProfileServiceImpl.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/user/UserProfileServiceImpl.java index cf99c1d3..34bd4cbd 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/user/UserProfileServiceImpl.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/user/user/UserProfileServiceImpl.java @@ -65,6 +65,11 @@ public class UserProfileServiceImpl implements UserProfileService { return null; } + @Override + public UserProfileDTO getUserOpenProfile(AccountQryCmd cmd) { + return userProfileUseByAccountQryExe.execute(cmd); + } + @Override public UserProfileCardCO getUserProfileCard(UserCardQryCmd cmd) { return userProfileCardQryExe.execute(cmd); diff --git a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/service/user/user/UserProfileService.java b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/service/user/user/UserProfileService.java index e500b746..d8cab698 100644 --- a/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/service/user/user/UserProfileService.java +++ b/rc-service/rc-service-other/other-client/src/main/java/com/red/circle/other/app/service/user/user/UserProfileService.java @@ -22,6 +22,8 @@ public interface UserProfileService { UserProfileDTO getUserProfile(AccountQryCmd cmd); + UserProfileDTO getUserOpenProfile(AccountQryCmd cmd); + UserProfileCardCO getUserProfileCard(UserCardQryCmd cmd); UserProfileDTO updateUserProfile(UserProfileModifyCmd cmd);