动态用户vip和徽章显示问题修复

This commit is contained in:
tianfeng 2026-02-04 11:23:54 +08:00
parent 0af74b179f
commit 6110d4a934
2 changed files with 5 additions and 13 deletions

View File

@ -5,6 +5,8 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;
import com.red.circle.other.inner.model.dto.user.props.UserUsePropsDTO;
import lombok.Data;
/**
@ -53,9 +55,9 @@ public class UserSimpleProfileDTO implements Serializable {
private OwnSpecialIdDTO ownSpecialId;
/**
* 使用的道具仅包含贵族VIP类型.
* 使用的道具.
*/
private List<SimplePropsDTO> useProps;
private List<UserUsePropsDTO> useProps;
/**
* 佩戴的勋章.

View File

@ -105,17 +105,6 @@ public interface UserProfileAppConvertor {
dto.getUseProps().stream()
.filter(props -> props.getPropsResources() != null
&& "NOBLE_VIP".equals(props.getPropsResources().getType()))
.map(props -> {
UserSimpleProfileDTO.SimplePropsDTO simpleProps =
new UserSimpleProfileDTO.SimplePropsDTO();
simpleProps.setType(props.getPropsResources().getType());
simpleProps.setName(props.getPropsResources().getName());
simpleProps.setCover(props.getPropsResources().getCover());
simpleProps.setSourceUrl(props.getPropsResources().getSourceUrl());
simpleProps.setExpand(props.getPropsResources().getExpand());
simpleProps.setExpireTime(props.getExpireTime());
return simpleProps;
})
.collect(Collectors.toList())
);
}
@ -124,6 +113,7 @@ public interface UserProfileAppConvertor {
if (dto.getWearBadge() != null) {
simple.setWearBadge(
dto.getWearBadge().stream()
.filter( e -> Boolean.TRUE.equals(e.getUse()))
.map(badge -> {
UserSimpleProfileDTO.SimpleBadgeDTO simpleBadge =
new UserSimpleProfileDTO.SimpleBadgeDTO();