Files
nuttyreading-java/src/main/java/com/peanut/modules/common/entity/BookAbroadComment.java
2024-11-26 18:08:44 +08:00

42 lines
1.1 KiB
Java

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<BookAbroadComment> children;
}