45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
|
|
package com.xscm.moduleutil.bean;
|
|||
|
|
|
|||
|
|
import java.util.List;
|
|||
|
|
|
|||
|
|
import lombok.Data;
|
|||
|
|
/**
|
|||
|
|
*@author qx
|
|||
|
|
*@data 2025/5/30
|
|||
|
|
*@description:评论实体
|
|||
|
|
*/
|
|||
|
|
@Data
|
|||
|
|
public class CommentBean {
|
|||
|
|
|
|||
|
|
private int total;//评论总数
|
|||
|
|
private List<CommentDetailsBean> list;
|
|||
|
|
@Data
|
|||
|
|
public static class CommentDetailsBean {
|
|||
|
|
private int id;//评论ID
|
|||
|
|
private int zone_id;//动态ID
|
|||
|
|
private String content;//评论内容
|
|||
|
|
private int createtime;
|
|||
|
|
private int user_id;//评论者ID
|
|||
|
|
private String nickname;
|
|||
|
|
private String avatar;
|
|||
|
|
private int is_author;//评论者是否作者 0不是,1是
|
|||
|
|
private List<Replies> replies;
|
|||
|
|
|
|||
|
|
@Data
|
|||
|
|
public static class Replies {
|
|||
|
|
private int id;//评论ID
|
|||
|
|
private int zone_id;//动态ID
|
|||
|
|
private String content;
|
|||
|
|
private int createtime;
|
|||
|
|
private int user_id;//评论者ID
|
|||
|
|
private String nickname;
|
|||
|
|
private String avatar;
|
|||
|
|
private int pid;//上级评论的ID
|
|||
|
|
private int is_author;//评论者是否作者 0不是,1是
|
|||
|
|
private int reply_to;//回复给谁的ID
|
|||
|
|
private String reply_to_user;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|