新增/member/profile接口

This commit is contained in:
tianfeng 2025-08-24 19:31:03 +08:00
parent 830c08f921
commit 4cbfd00319
4 changed files with 26 additions and 0 deletions

View File

@ -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);
}
/**
* 获取团队成员列表.
*

View File

@ -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()));
}
}

View File

@ -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<TeamMemberCO> listTeamMember(AppIdLongCmd cmd) {
return teamMemberListQryExe.execute(cmd);

View File

@ -48,6 +48,13 @@ public interface TeamService {
*/
String getMemberRole(AppIdLongCmd cmd);
/**
* 用户信息
* @param cmd
* @return
*/
UserProfileDTO getMemberProfile(AppExtCommand cmd);
/**
* 获取团队成员.
*/