fix: include badge fields in live user list

This commit is contained in:
hy001 2026-05-16 01:40:34 +08:00
parent 3692e61b1c
commit a1979f2be7
2 changed files with 60 additions and 28 deletions

View File

@ -1,9 +1,10 @@
package com.red.circle.live.app.dto.clientobject;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.user.OwnSpecialIdDTO;
import com.red.circle.other.inner.model.dto.user.props.UserUsePropsDTO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.user.OwnSpecialIdDTO;
import com.red.circle.other.inner.model.dto.user.props.UserUseBadgeDTO;
import com.red.circle.other.inner.model.dto.user.props.UserUsePropsDTO;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;
@ -59,24 +60,39 @@ public class LiveMicUserCO implements Serializable {
*/
private OwnSpecialIdDTO ownSpecialId;
/**
* 使用的道具.
*/
private List<UserUsePropsDTO> useProps;
/**
* 使用的道具.
*/
private List<UserUsePropsDTO> useProps;
/**
* 佩戴的徽章.
*/
private List<UserUseBadgeDTO> wearBadge;
/**
* 佩戴的荣誉徽章.
*/
private List<UserUseBadgeDTO> wearHonor;
/**
* 角色.
*/
private String roles;
/**
* 魅力等级.
*/
private Integer charmLevel;
/**
* 心动值
/**
* 魅力等级.
*/
private Integer charmLevel;
/**
* 财富等级.
*/
private Integer wealthLevel;
/**
* 心动值
*/
private Long heartbeatVal;

View File

@ -1,10 +1,11 @@
package com.red.circle.live.domain.live;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.user.OwnSpecialIdDTO;
import com.red.circle.other.inner.model.dto.user.props.UserUsePropsDTO;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.other.inner.model.dto.user.OwnSpecialIdDTO;
import com.red.circle.other.inner.model.dto.user.props.UserUseBadgeDTO;
import com.red.circle.other.inner.model.dto.user.props.UserUsePropsDTO;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;
@ -61,20 +62,35 @@ public class LiveMicUser implements Serializable {
*/
private OwnSpecialIdDTO ownSpecialId;
/**
* 使用的道具.
*/
private List<UserUsePropsDTO> useProps;
/**
* 使用的道具.
*/
private List<UserUsePropsDTO> useProps;
/**
* 佩戴的徽章.
*/
private List<UserUseBadgeDTO> wearBadge;
/**
* 佩戴的荣誉徽章.
*/
private List<UserUseBadgeDTO> wearHonor;
/**
* 角色.
*/
private String roles;
/**
* 魅力等级.
*/
private Integer charmLevel;
/**
* 魅力等级.
*/
private Integer charmLevel;
/**
* 财富等级.
*/
private Integer wealthLevel;
/**
* 心动值