From 1721c84604da2de5407cbfb993008965ef542665 Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Tue, 5 Dec 2023 09:22:26 +0800 Subject: [PATCH] =?UTF-8?q?vo=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/vo/AppChildrenCommentResponse.java | 89 ------------------- .../linfeng/common/vo/AppCommentResponse.java | 9 +- .../common/vo/AppUserRankResponse.java | 5 +- 3 files changed, 12 insertions(+), 91 deletions(-) delete mode 100644 src/main/java/io/linfeng/common/vo/AppChildrenCommentResponse.java diff --git a/src/main/java/io/linfeng/common/vo/AppChildrenCommentResponse.java b/src/main/java/io/linfeng/common/vo/AppChildrenCommentResponse.java deleted file mode 100644 index 0e35ebe..0000000 --- a/src/main/java/io/linfeng/common/vo/AppChildrenCommentResponse.java +++ /dev/null @@ -1,89 +0,0 @@ -/** - * ----------------------------------- - * 林风社交论坛开源版本请务必保留此注释头信息 - * 开源地址: https://gitee.com/virus010101/linfeng-community - * 商业版详情查看: https://www.linfeng.tech - * 商业版购买联系技术客服 QQ: 3582996245 - * 可正常分享和学习源码,不得转卖或非法牟利! - * Copyright (c) 2021-2023 linfeng all rights reserved. - * 版权所有 ,侵权必究! - * ----------------------------------- - */ -package io.linfeng.common.vo; - -import com.baomidou.mybatisplus.annotation.TableId; -import io.linfeng.modules.admin.entity.AppUserEntity; -import lombok.Data; - -import java.io.Serializable; -import java.util.Date; - -/** - * - * - * @author linfeng - * @email 3582996245@qq.com - * @date 2022-01-25 18:51:22 - */ -@Data -public class AppChildrenCommentResponse implements Serializable { - private static final long serialVersionUID = 1L; - - /** - * id - */ - @TableId - private Long id; - /** - * 父级id - */ - private Integer pid; - /** - * 评论类型:1帖子 - */ - private Integer type; - /** - * 评论作者ID - */ - private Long uid; - /** - * 被回复用户ID - */ - private Integer toUid; - /** - * 评论帖子ID - */ - private Long postId; - /** - * 评论内容 - */ - private String content; - /** - * 评论状态 - */ - private Integer status; - /** - * 创建时间 - */ - private Date createTime; - - /** - * 被回复用户信息 - */ - private AppUserEntity toUser; - - /** - * 评论用户信息 - */ - private AppUserEntity userInfo; - - /** - * 点赞数 - */ - private Integer thumbs; - - /** - * 评论是否点赞 - */ - private Boolean isThumbs; -} diff --git a/src/main/java/io/linfeng/common/vo/AppCommentResponse.java b/src/main/java/io/linfeng/common/vo/AppCommentResponse.java index 3116501..172e7fb 100644 --- a/src/main/java/io/linfeng/common/vo/AppCommentResponse.java +++ b/src/main/java/io/linfeng/common/vo/AppCommentResponse.java @@ -35,10 +35,12 @@ public class AppCommentResponse implements Serializable { */ @TableId private Long id; + /** * 父级id */ private Integer pid; + /** * 评论类型:1帖子 */ @@ -47,22 +49,27 @@ public class AppCommentResponse implements Serializable { * 评论作者ID */ private Long uid; + /** * 被回复用户ID */ private Integer toUid; + /** * 评论帖子ID */ private Long postId; + /** * 评论内容 */ private String content; + /** * 评论状态 */ private Integer status; + /** * 创建时间 */ @@ -71,7 +78,7 @@ public class AppCommentResponse implements Serializable { /** * 子评论 */ - private List children; + private List children; /** * 评论用户信息 diff --git a/src/main/java/io/linfeng/common/vo/AppUserRankResponse.java b/src/main/java/io/linfeng/common/vo/AppUserRankResponse.java index 69339e7..5f8a376 100644 --- a/src/main/java/io/linfeng/common/vo/AppUserRankResponse.java +++ b/src/main/java/io/linfeng/common/vo/AppUserRankResponse.java @@ -39,12 +39,12 @@ public class AppUserRankResponse implements Serializable { * 头像 */ private String avatar; + /** * 性别(0未知,1男,2女) */ private Integer gender; - /** * 个性签名 */ @@ -55,6 +55,9 @@ public class AppUserRankResponse implements Serializable { */ private String tagStr; + /** + * 贴子数 + */ private Integer postNumber; }