package com.panzhihua.service_community.model.dos; import java.io.Serializable; import java.util.Date; import com.baomidou.mybatisplus.annotation.*; import lombok.Data; /** * @program: springcloud_k8s_panzhihuazhihuishequ * @description: 一起议评论 * @author: huang.hongfa weixin hhf9596 qq 959656820 * @create: 2021-01-22 15:09 **/ @Data @TableName(value = "com_act_discuss_comment") public class ComActDiscussCommentDO implements Serializable { private static final long serialVersionUID = 1L; /** * 主键 */ @TableId(type = IdType.ASSIGN_ID) private Long id; /** * 一起议主键 */ private Long discussId; /** * varchar(500) */ private String comment; /** * 是否置顶 0 否 1 是 */ private Integer isTopping; /** * 评论时间 */ @TableField(fill = FieldFill.INSERT) private Date createAt; /** * 是否作者本人回复 0 否 1 是 */ private Integer isAuthor; /** * 上级评论id 默认0表示一级评论 */ private Long parentId; /** * 用户主键 */ private Long userId; /** * 回复量 */ private Integer replyNum; /** * 是否删除(1.是 2.否) */ private Integer isDel; /** * 是否删除枚举(1.是 2.否) */ public interface isDelete{ int yes = 1; int no = 2; } }