package com.peanut.modules.common.entity; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import lombok.Data; import java.io.Serializable; import java.util.Date; import java.util.List; //海外书籍评论 @Data @TableName("book_abroad_comment") public class BookAbroadComment implements Serializable { private static final long serialVersionUID = 1L; @TableId private Integer id; //父id private Integer pid; //书籍id private Integer bookId; //用户id private Integer userId; //评论内容 private String content; //创建时间 private Date createTime; @TableLogic private Integer delFlag; @TableField(exist = false) private int isLike; @TableField(exist = false) private int likeCount; @TableField(exist = false) private MyUserEntity userEntity; @TableField(exist = false) private List children; }