家族榜单增加account字段
This commit is contained in:
parent
719f932b86
commit
fed32f20cd
@ -105,6 +105,7 @@ public class FamilyLeaderboardExe {
|
||||
UserProfile profile, boolean isHost) {
|
||||
return new FamilyMemberWeekRankCO()
|
||||
.setUserId(exp.getFamilyMemberId())
|
||||
.setAccount(Objects.nonNull(profile) ? profile.getAccount() : "")
|
||||
.setNickname(Objects.nonNull(profile) ? profile.getUserNickname() : "")
|
||||
.setAvatar(Objects.nonNull(profile) ? profile.getUserAvatar() : "")
|
||||
.setExp(NumUtils.formatLong(exp.getExp()))
|
||||
|
||||
@ -132,6 +132,7 @@ public class FamilyMemberTop100Exe {
|
||||
UserProfile profile, boolean isHost) {
|
||||
return new FamilyMemberWeekRankCO()
|
||||
.setUserId(exp.getFamilyMemberId())
|
||||
.setAccount(Objects.nonNull(profile) ? profile.getAccount() : "")
|
||||
.setNickname(Objects.nonNull(profile) ? profile.getUserNickname() : "")
|
||||
.setAvatar(Objects.nonNull(profile) ? profile.getUserAvatar() : "")
|
||||
.setExp(NumUtils.formatLong(exp.getExp()))
|
||||
@ -155,6 +156,7 @@ public class FamilyMemberTop100Exe {
|
||||
|
||||
return new FamilyMemberRankInfoCO()
|
||||
.setUserId(userId)
|
||||
.setAccount(Objects.nonNull(profile) ? profile.getAccount() : "")
|
||||
.setNickname(Objects.nonNull(profile) ? profile.getUserNickname() : "")
|
||||
.setAvatar(Objects.nonNull(profile) ? profile.getUserAvatar() : "")
|
||||
.setExp(Objects.nonNull(myExp) ? NumUtils.formatLong(myExp.getExp()) : "0")
|
||||
|
||||
@ -21,6 +21,8 @@ public class FamilyMemberRankInfoCO implements Serializable {
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long userId;
|
||||
|
||||
private String account;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
|
||||
@ -21,6 +21,8 @@ public class FamilyMemberWeekRankCO implements Serializable {
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long userId;
|
||||
|
||||
private String account;
|
||||
|
||||
/**
|
||||
* 用户昵称
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user