This commit is contained in:
dute7liang
2023-12-24 16:58:05 +08:00
parent 2f47f91b37
commit 3febb24205
19 changed files with 322 additions and 9 deletions

View File

@@ -0,0 +1,39 @@
package com.ruoyi.cai.dto.app.query;
import com.ruoyi.cai.dto.app.vo.DynamicImageVo;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
@Data
public class DynamicAddRes {
/**
* 用户ID
*/
private Long userId;
/**
* 内容
*/
private String content;
/**
* 城市ID
*/
private Integer cityId;
/**
* 是否有附件 0 没有 1 有
*/
private Integer isAttach;
/**
* 状态 0 审核中 1可用 2 不可用
*/
private Integer status;
/**
* 排序字段
*/
private Long sort;
private LocalDateTime createTime;
private List<DynamicImageVo> imageList;
}

View File

@@ -0,0 +1,16 @@
package com.ruoyi.cai.dto.app.query;
import lombok.Data;
@Data
public class DynamicQuery {
// 1=最新(默认) 2=关注 3=同城
private Integer type = 1;
private Long userId;
private Long currentUserId;
private Integer cityId;
}

View File

@@ -0,0 +1,9 @@
package com.ruoyi.cai.dto.app.query;
import lombok.Data;
@Data
public class DynamicStarRes {
private Long dynamicId;
private Long userId;
}

View File

@@ -0,0 +1,28 @@
package com.ruoyi.cai.dto.app.query;
import lombok.Data;
@Data
public class UserReportRes {
/**
* 举报类型 1 个人详情页 2 视频结束 3 动态 4.IM页面
*/
private Integer type;
/**
* 举报分类
*/
private Long cateId;
/**
* 举报人
*/
private Long userId;
/**
* 举报对象
*/
private Long reportUid;
/**
* 举报内容
*/
private String content;
}

View File

@@ -7,11 +7,11 @@ import java.time.LocalDateTime;
@Data
public class DynamicImageVo {
private Integer id;
private Long id;
/**
* 用户ID
*/
private Integer userId;
private Long userId;
/**
* 动态ID
*/

View File

@@ -0,0 +1,19 @@
package com.ruoyi.cai.dto.app.vo;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;
@Data
public class DynamicListVo extends DynamicVo{
private Integer age;
/**
* 性别 0 未知 1 女 2 男
*/
private Integer gender;
private String avatar;
private String nickname;
private boolean star;
}

View File

@@ -14,7 +14,7 @@ public class DynamicVo {
/**
* 用户ID
*/
private Integer userId;
private Long userId;
/**
* 内容
*/