fix:前后端交互优化

This commit is contained in:
zhongzb
2023-06-18 20:02:44 +08:00
parent f3b9c180fb
commit b22f905014
11 changed files with 157 additions and 14645 deletions

View File

@@ -19,9 +19,17 @@ import lombok.NoArgsConstructor;
public class ItemInfoDTO {
@ApiModelProperty(value = "徽章id")
private Long itemId;
@ApiModelProperty(value = "是否需要刷新")
private Boolean needRefresh = Boolean.TRUE;
@ApiModelProperty("徽章图像")
private String img;
@ApiModelProperty("徽章说明")
private String describe;
public static ItemInfoDTO skip(Long itemId) {
ItemInfoDTO dto = new ItemInfoDTO();
dto.setItemId(itemId);
dto.setNeedRefresh(Boolean.FALSE);
return dto;
}
}

View File

@@ -21,6 +21,8 @@ import java.util.List;
public class SummeryInfoDTO {
@ApiModelProperty(value = "用户id")
private Long uid;
@ApiModelProperty(value = "是否需要刷新")
private Boolean needRefresh = Boolean.TRUE;
@ApiModelProperty(value = "用户昵称")
private String name;
@ApiModelProperty(value = "用户头像")
@@ -32,4 +34,10 @@ public class SummeryInfoDTO {
@ApiModelProperty(value = "用户拥有的徽章id列表")
List<Long> itemIds;
public static SummeryInfoDTO skip(Long uid) {
SummeryInfoDTO dto = new SummeryInfoDTO();
dto.setUid(uid);
dto.setNeedRefresh(Boolean.FALSE);
return dto;
}
}