新增/member/profile接口
This commit is contained in:
parent
830c08f921
commit
4cbfd00319
@ -83,6 +83,14 @@ public class TeamRestController extends BaseController {
|
|||||||
return teamService.getMemberRole(cmd);
|
return teamService.getMemberRole(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取用户信息
|
||||||
|
*/
|
||||||
|
@GetMapping("/member/profile")
|
||||||
|
public UserProfileDTO getMemberProfile(AppIdStringCmd cmd) {
|
||||||
|
return teamService.getMemberProfile(cmd);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取团队成员列表.
|
* 获取团队成员列表.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -2,6 +2,7 @@ package com.red.circle.other.app.command.team.query;
|
|||||||
|
|
||||||
import com.google.common.collect.Maps;
|
import com.google.common.collect.Maps;
|
||||||
import com.red.circle.common.business.dto.cmd.AppExtCommand;
|
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.framework.core.asserts.ResponseAssert;
|
||||||
import com.red.circle.other.app.convertor.team.TeamAppConvertor;
|
import com.red.circle.other.app.convertor.team.TeamAppConvertor;
|
||||||
import com.red.circle.other.app.convertor.user.UserProfileAppConvertor;
|
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()));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -118,6 +118,11 @@ public class TeamServiceImpl implements TeamService {
|
|||||||
return teamMemberRoleQryExe.execute(cmd);
|
return teamMemberRoleQryExe.execute(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UserProfileDTO getMemberProfile(AppExtCommand cmd) {
|
||||||
|
return teamEntryTeamQryExe.getMemberProfile(cmd);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<TeamMemberCO> listTeamMember(AppIdLongCmd cmd) {
|
public List<TeamMemberCO> listTeamMember(AppIdLongCmd cmd) {
|
||||||
return teamMemberListQryExe.execute(cmd);
|
return teamMemberListQryExe.execute(cmd);
|
||||||
|
|||||||
@ -48,6 +48,13 @@ public interface TeamService {
|
|||||||
*/
|
*/
|
||||||
String getMemberRole(AppIdLongCmd cmd);
|
String getMemberRole(AppIdLongCmd cmd);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户信息
|
||||||
|
* @param cmd
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
UserProfileDTO getMemberProfile(AppExtCommand cmd);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取团队成员.
|
* 获取团队成员.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user