This commit is contained in:
dute7liang
2024-01-21 17:17:38 +08:00
parent 75dd05f7ec
commit e36ad030e4
11 changed files with 97 additions and 29 deletions

View File

@@ -30,16 +30,19 @@ public class DynamicAddReq {
*/
@Schema(description = "是否有附件")
private Integer isAttach;
@Schema(description = "照片列表")
private List<DynamicImageVo> imageList;
/**
* 状态 0 审核中 1可用 2 不可用
*/
@Schema(hidden = true)
private Integer status;
/**
* 排序字段
*/
@Schema(hidden = true)
private Long sort;
@Schema(hidden = true)
private LocalDateTime createTime;
@Schema(description = "照片列表")
private List<DynamicImageVo> imageList;
}

View File

@@ -8,6 +8,7 @@ import java.time.LocalDateTime;
@Data
public class DynamicImageVo {
@Schema(hidden = true)
private Long id;
/**
* 用户ID
@@ -17,6 +18,7 @@ public class DynamicImageVo {
/**
* 动态ID
*/
@Schema(hidden = true)
private Long dynamicId;
/**
* 物理路径
@@ -27,12 +29,12 @@ public class DynamicImageVo {
* 宽度
*/
@Schema(description = "宽度")
private Long width;
private Integer width;
/**
* 高度
*/
@Schema(description = "高度")
private Long height;
private Integer height;
/**
* 图片大小
*/
@@ -44,5 +46,6 @@ public class DynamicImageVo {
@Schema(description = "类型")
private String exts;
@Schema(hidden = true)
private LocalDateTime createTime;
}

View File

@@ -21,6 +21,6 @@ public class DynamicListVo extends DynamicVo{
private String avatar;
@Schema(description = "昵称")
private String nickname;
@Schema(description = "是否点赞")
@Schema(description = "是否关注用户")
private boolean star;
}