live 用户列表新增 财富等级字段
This commit is contained in:
parent
1df3a2faca
commit
e0be58ec2c
@ -71,6 +71,11 @@ public class LiveMicUser implements Serializable {
|
||||
*/
|
||||
private String roles;
|
||||
|
||||
/**
|
||||
* 财富等级.
|
||||
*/
|
||||
private Integer wealthLevel;
|
||||
|
||||
/**
|
||||
* 魅力等级.
|
||||
*/
|
||||
|
||||
@ -180,8 +180,11 @@ public class LiveMicrophoneGatewayImpl implements LiveMicrophoneGateway {
|
||||
LiveMicUser micUser = liveMicrophoneInfraConvertor.toLiveMicUser(userProfile);
|
||||
ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, micUser);
|
||||
micUser.setRoles(Objects.toString(roomMemberClient.getMemberRoles(roomId, userId).getBody()));
|
||||
micUser.setCharmLevel(userLevelClient.getUserLevel(
|
||||
SysOriginPlatformEnum.valueOf(roomProfile.getSysOrigin()), userId).getBody().getCharmLevel());
|
||||
WealthAndCharmLevelDTO body = userLevelClient.getUserLevel(SysOriginPlatformEnum.valueOf(roomProfile.getSysOrigin()), userId).getBody();
|
||||
if (Objects.nonNull(body)) {
|
||||
micUser.setCharmLevel(body.getCharmLevel());
|
||||
micUser.setWealthLevel(body.getWealthLevel());
|
||||
}
|
||||
|
||||
LiveMicrophone liveMicrophone = new LiveMicrophone()
|
||||
.setMicIndex(micSeat.getMicIndex())
|
||||
@ -625,6 +628,7 @@ public class LiveMicrophoneGatewayImpl implements LiveMicrophoneGateway {
|
||||
|
||||
if (Objects.nonNull(wealthAndCharmLevelDTO)) {
|
||||
liveMicrophone.getUser().setCharmLevel(wealthAndCharmLevelDTO.getCharmLevel());
|
||||
liveMicrophone.getUser().setWealthLevel(wealthAndCharmLevelDTO.getWealthLevel());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user