188 lines
2.9 KiB
Java
188 lines
2.9 KiB
Java
package com.peanut.modules.book.entity;
|
||
|
||
import com.baomidou.mybatisplus.annotation.*;
|
||
|
||
import java.math.BigDecimal;
|
||
import java.io.Serializable;
|
||
import java.util.Date;
|
||
import java.util.List;
|
||
|
||
import lombok.Data;
|
||
|
||
/**
|
||
* 图书表
|
||
*
|
||
* @author yl
|
||
* @email yl328572838@163.com
|
||
* @date 2022-08-04 15:36:59
|
||
*/
|
||
@Data
|
||
@TableName("book")
|
||
public class BookEntity implements Serializable {
|
||
private static final long serialVersionUID = 1L;
|
||
|
||
/**
|
||
*
|
||
*/
|
||
@TableId(type = IdType.AUTO)
|
||
private Integer id;
|
||
/**
|
||
* 书名
|
||
*/
|
||
private String name;
|
||
/**
|
||
* 作者id
|
||
*/
|
||
private String authorId;
|
||
/**
|
||
* 简介
|
||
*/
|
||
private String description;
|
||
/**
|
||
* 序言
|
||
*/
|
||
private String title;
|
||
/**
|
||
* 秒杀
|
||
*/
|
||
private Integer isSale;
|
||
/**
|
||
* 付费类型
|
||
*/
|
||
@TableField("isVip")
|
||
private Integer isVip;
|
||
@TableField("teach_in")
|
||
private Integer teachIn;
|
||
/**
|
||
* 免费章节数
|
||
*/
|
||
private Integer freeChapterCount;
|
||
/**
|
||
* 内容
|
||
*/
|
||
private String content;
|
||
/**
|
||
* 类型
|
||
*/
|
||
private String type;
|
||
/**
|
||
* 价格
|
||
*/
|
||
private BigDecimal price;
|
||
/**
|
||
* 价格
|
||
*/
|
||
private BigDecimal salePrice;
|
||
/**
|
||
* 是否加入书架
|
||
*/
|
||
@TableField(exist = false)
|
||
private boolean flag;
|
||
/**
|
||
* 置顶
|
||
*/
|
||
private Integer istop;
|
||
/**
|
||
* 出版商id
|
||
*/
|
||
private String publisherId;
|
||
/**
|
||
* 插图
|
||
*/
|
||
private String images;
|
||
|
||
/**
|
||
* 插图 多图
|
||
*/
|
||
private String imagesList;
|
||
|
||
/**
|
||
* 父id
|
||
*/
|
||
private Integer pid;
|
||
/**
|
||
* 层级
|
||
*/
|
||
private String level;
|
||
/**
|
||
* 章节处理状态 0-未处理 1-处理中 2-成功 3-失败
|
||
*/
|
||
private String chapterStatus;
|
||
/**
|
||
* 内容处理状态 0-未处理 1-处理中 2-成功 3-失败
|
||
*/
|
||
private String contentStatus;
|
||
/**
|
||
* 音频处理状态 0-未处理 1-处理中 2-成功 3-失败
|
||
*/
|
||
private String voicesStatus;
|
||
/**
|
||
* 1为标题拆分,2为小节拆分
|
||
*/
|
||
private String splits;
|
||
/**
|
||
* 创建日期
|
||
*/
|
||
@TableField(fill = FieldFill.INSERT)//创建注解
|
||
private Date createTime;
|
||
/**
|
||
* 更新日期
|
||
*/
|
||
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
|
||
private Date updateTime;
|
||
/**
|
||
* 排序
|
||
*/
|
||
private Integer sort;
|
||
|
||
private Integer state;
|
||
|
||
private String novel;
|
||
/**
|
||
* 删除标记
|
||
*/
|
||
@TableLogic
|
||
private Integer delFlag;
|
||
|
||
@TableField(exist = false)
|
||
private String publisherName;
|
||
|
||
@TableField(exist = false)
|
||
private AuthorEntity author;
|
||
|
||
@TableField(exist = false)
|
||
private Publisher publisher;
|
||
|
||
@TableField(exist = false)
|
||
private String authorName;
|
||
|
||
@TableField(exist = false)
|
||
private Integer chapterId;
|
||
|
||
@TableField(exist = false)
|
||
private String chapterName;
|
||
|
||
@TableField(exist = false)
|
||
private Integer chapterNum;
|
||
|
||
@TableField(exist = false)
|
||
private Boolean isBuy;
|
||
|
||
@TableField(exist = false)
|
||
private List<BookForumArticlesEntity> forums;
|
||
|
||
@TableField(exist = false)
|
||
private Integer forumNum;
|
||
|
||
@TableField("can_listen")
|
||
private Boolean canListen;
|
||
|
||
@TableField(exist = false)
|
||
private Integer productId;
|
||
|
||
|
||
private Integer clockIn;
|
||
|
||
|
||
}
|