--新版提交
This commit is contained in:
@@ -0,0 +1,74 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("book_clockin_comment")
|
||||
public class BookClockinCommentEntity implements Serializable {
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
* 签到表关联id
|
||||
*/
|
||||
@TableField("task_id")
|
||||
private Integer taskId;
|
||||
/**
|
||||
* 图书id
|
||||
*/
|
||||
@TableField("book_id")
|
||||
private Integer bookId;
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@TableField("user_id")
|
||||
private Integer userId;
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@TableField("del_flag")
|
||||
private Integer delFlag;
|
||||
/**
|
||||
* 图片
|
||||
*/
|
||||
@TableField("images")
|
||||
private String images;
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
@TableField("content")
|
||||
private String content;
|
||||
/**
|
||||
* 点赞总数
|
||||
*/
|
||||
@TableField("like_sum")
|
||||
private String likeSum;
|
||||
/**
|
||||
*创建时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
/**
|
||||
*修改时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 关联评论
|
||||
*/
|
||||
@TableField("pid")
|
||||
private Integer pid;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
*
|
||||
* 打卡表
|
||||
* @author
|
||||
* @email
|
||||
* @date
|
||||
*/
|
||||
@Data
|
||||
@TableName("book_clockin")
|
||||
public class BookClockinEntity implements Serializable {
|
||||
|
||||
/**
|
||||
* id book_id user_id content clockin_sum
|
||||
* clockin_days create_time update_time del_flag
|
||||
* images voices like like_sum comment_sum
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("book_id")
|
||||
private Integer bookId;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("user_id")
|
||||
private Integer userId;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("content")
|
||||
private String content;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("clockin_sum")
|
||||
private String clockinSum;
|
||||
|
||||
|
||||
/**
|
||||
* 集合
|
||||
*/
|
||||
@TableField(exist = false)
|
||||
private Object imageeStrings;
|
||||
/**
|
||||
*创建注解
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("images")
|
||||
private Object images;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("voices")
|
||||
private String voices;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("like_s")
|
||||
private String likes;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(" like_sum")
|
||||
private String likeSum;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(" comment_sum")
|
||||
private String commentSum;
|
||||
|
||||
//taskId 与 dayId 反转存储
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* 打卡对应天id
|
||||
*/
|
||||
@TableField("day_id")
|
||||
private Integer dayId;
|
||||
/**
|
||||
* 列表id
|
||||
*
|
||||
*/
|
||||
@TableField("task_id")
|
||||
private Integer taskId;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 签到
|
||||
*/
|
||||
@Data
|
||||
@TableName("book_clockin_punch")
|
||||
public class BookClockinPunchEntity implements Serializable {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("book_id")
|
||||
private Integer bookId;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("user_id")
|
||||
private Integer userId;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("days")
|
||||
private Integer days;
|
||||
/**
|
||||
*创建注解
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("t_id")
|
||||
private Integer tId;
|
||||
|
||||
|
||||
|
||||
@TableLogic
|
||||
private Integer delFlag;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 文章表主表
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@TableName("book_forum_articles")
|
||||
public class BookForumArticlesEntity {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
*标题
|
||||
*/
|
||||
@TableField("title")
|
||||
private String title;
|
||||
/**
|
||||
*用户id
|
||||
*/
|
||||
@TableField("userid")
|
||||
private Integer userid;
|
||||
/**
|
||||
*内容
|
||||
*/
|
||||
@TableField("content")
|
||||
private String content;
|
||||
/**
|
||||
*图片
|
||||
*/
|
||||
@TableField("image")
|
||||
private String image;
|
||||
/**
|
||||
*多图
|
||||
*/
|
||||
@TableField("imagelist")
|
||||
private String imagelist;
|
||||
/**
|
||||
*图书id
|
||||
*/
|
||||
@TableField("bookid")
|
||||
private Integer bookid;
|
||||
/**
|
||||
*开始时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
/**
|
||||
* 修改时间
|
||||
*/
|
||||
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解;
|
||||
private Date updateTime;
|
||||
/**
|
||||
* 点赞数
|
||||
*/
|
||||
@TableField("contlike")
|
||||
private Date contlike;
|
||||
|
||||
@TableField("del_flag")
|
||||
@TableLogic
|
||||
private Integer delflag;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 评价文章表
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@TableName("book_forum_comment")
|
||||
public class BookForumCommentEntity {
|
||||
|
||||
/**
|
||||
* id bfa_id userid content images create_time update_time
|
||||
*/
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
*文章父id
|
||||
*/
|
||||
@TableField("bfa_id")
|
||||
private String bfaid;
|
||||
/**
|
||||
*用户评论id
|
||||
*/
|
||||
@TableField("userid")
|
||||
private String userid;
|
||||
/**
|
||||
*内容
|
||||
*/
|
||||
@TableField("content")
|
||||
private String content;
|
||||
/**
|
||||
*图片
|
||||
*/
|
||||
@TableField("image")
|
||||
private String image;
|
||||
/**
|
||||
*开始时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
/**
|
||||
*修改时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.UPDATE)
|
||||
private Date updateTime;
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@TableField("del_flag")
|
||||
@TableLogic
|
||||
private Integer delflag;
|
||||
@TableField("book_id")
|
||||
private Integer bookid;
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 听书进度表
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@TableName("book_listening")
|
||||
public class BookListeningEntity implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@TableField("user_id")
|
||||
private Integer userId;
|
||||
/**
|
||||
* 图书id
|
||||
*/
|
||||
@TableField("book_id")
|
||||
private Integer bookId;
|
||||
/**
|
||||
* 章节id
|
||||
*/
|
||||
@TableField("chapter_id")
|
||||
private Integer chapterId;
|
||||
/**
|
||||
* 章节名称
|
||||
*/
|
||||
@TableField("chapter_name")
|
||||
private String chapterName;
|
||||
/**
|
||||
* 章节百分比
|
||||
*/
|
||||
@TableField("precent")
|
||||
private Integer precent;
|
||||
/**
|
||||
* 章节内容id
|
||||
*/
|
||||
@TableField("content_id")
|
||||
private Integer contentId;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private Integer sort;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private String delFlag;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("book_listening_shelf")
|
||||
public class BookListeningShelfEntity {
|
||||
|
||||
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
* 图书
|
||||
*/
|
||||
@TableField("book_id")
|
||||
private Integer bookid;
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@TableField("user_id")
|
||||
private Integer userid;
|
||||
/**
|
||||
* 图书名称
|
||||
*/
|
||||
@TableField("book_name")
|
||||
private Integer bookname;
|
||||
/**
|
||||
* 删除标记
|
||||
*/
|
||||
@TableField("del_flag")
|
||||
private Integer delflag;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 签到列表内容
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
@TableName("book_task")
|
||||
public class BookTaskEntity implements Serializable {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("book_id")
|
||||
private Integer bookid;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("content")
|
||||
private String content;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("images")
|
||||
private String images;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("voices")
|
||||
private String voices;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("like_sun")
|
||||
private String likesun;
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField("days")
|
||||
private String days;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private Date createTime;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private Date updateTime;
|
||||
|
||||
|
||||
/**
|
||||
* 删除标记
|
||||
*/
|
||||
@TableField("del_flag")
|
||||
private Integer delFlag;
|
||||
|
||||
@TableField("video")
|
||||
private String video;
|
||||
|
||||
@TableField("heading")
|
||||
private String heading;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotEmpty;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
@Data
|
||||
public class UserAppAuthorEntity {
|
||||
//新旧app 用来备份 自定义数据
|
||||
@NotNull(message = "类型不能为空")
|
||||
@NotEmpty(message = "类型不能为空")
|
||||
private String type;
|
||||
|
||||
//重点需要 app调起微信获取到的code
|
||||
@NotEmpty(message = "code不能为空")
|
||||
@NotNull(message = "code不能为空")
|
||||
private String code;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.peanut.modules.book.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 追评追评(不限制)
|
||||
*/
|
||||
@Data
|
||||
@TableName("user_feedback")
|
||||
public class UserFeedbackEntity {
|
||||
|
||||
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@TableField("userId")
|
||||
private Integer userId;
|
||||
/**
|
||||
* 关联追加id
|
||||
*/
|
||||
@TableField("fu_id")
|
||||
private Integer fuid;
|
||||
/**
|
||||
* 关联评价id
|
||||
*/
|
||||
@TableField("r_id")
|
||||
private String rid;
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
@TableField("content")
|
||||
private String content;
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@TableField("delFlag")
|
||||
private Integer delFlag;
|
||||
/**
|
||||
* 订单号
|
||||
*/
|
||||
@TableField("ordersn")
|
||||
private Integer ordersn;
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date create_date;
|
||||
|
||||
/**
|
||||
* 图书id
|
||||
*/
|
||||
@TableField("bookid")
|
||||
private Integer bookid;
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.peanut.modules.book.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 javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* 追评表
|
||||
*/
|
||||
@Data
|
||||
@TableName("user_follow_up")
|
||||
public class UserFollowUpEntity {
|
||||
/**
|
||||
* 用户id
|
||||
*/
|
||||
@TableId
|
||||
private Integer id;
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@TableField("userId")
|
||||
private Integer userId;
|
||||
/**
|
||||
* 关联父评价id
|
||||
*/
|
||||
@TableField("oid")
|
||||
private Integer oid;
|
||||
/**
|
||||
* 内容
|
||||
*/
|
||||
@TableField("conTent")
|
||||
private String conTent;
|
||||
/**
|
||||
* 点赞
|
||||
*/
|
||||
@TableField("praIse")
|
||||
private String praIse;
|
||||
/**
|
||||
* 图片url
|
||||
*/
|
||||
@TableField("images")
|
||||
private Object images;
|
||||
/**
|
||||
* 删除
|
||||
*/
|
||||
@TableLogic
|
||||
private Integer delflag;
|
||||
/**
|
||||
* 图书id
|
||||
*/
|
||||
@TableField("bookid")
|
||||
private Integer bookid;
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date createDate;
|
||||
|
||||
/**
|
||||
* 星级
|
||||
*/
|
||||
@TableField("starLevel")
|
||||
private Integer starLevel;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 星级
|
||||
*/
|
||||
@TableField("emojis")
|
||||
private String emojis;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.peanut.modules.book.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 com.peanut.modules.book.to.UserRecordDto;
|
||||
import lombok.Data;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
@TableName("user_record")
|
||||
public class UserRecordEntity {
|
||||
|
||||
|
||||
@TableId
|
||||
private Integer id;
|
||||
|
||||
// 创建日期
|
||||
@Temporal(TemporalType.TIMESTAMP)
|
||||
private Date createDate = new Date();
|
||||
|
||||
// 类型(商品评价01,听书评价02,观看电子书评价03)
|
||||
@TableField("type")
|
||||
private String type ;
|
||||
|
||||
// 内容
|
||||
@TableField("content")
|
||||
private Object content ;
|
||||
//快递单号
|
||||
@TableField("orderCode")
|
||||
private String orderCode;
|
||||
//订单号
|
||||
@TableField("orderSn")
|
||||
private String orderSn;
|
||||
// 关联客户
|
||||
@TableField("userid")
|
||||
private Integer userid ;
|
||||
//逻辑删除:未删除0 -1删除
|
||||
@TableField("delFlag")
|
||||
@TableLogic
|
||||
private Integer delflag;
|
||||
//关联图书id
|
||||
@TableField("bookid")
|
||||
private Integer bookid ;
|
||||
//图片url
|
||||
// @TableField("images")
|
||||
// private String[] images;
|
||||
@TableField("images")
|
||||
private Object images;
|
||||
|
||||
//星级 1=一星,5=五星
|
||||
@TableField("starLevel")
|
||||
private String starLevel;
|
||||
|
||||
/**
|
||||
* 表情存储
|
||||
*/
|
||||
@TableField("emoji")
|
||||
private Object emoji;
|
||||
|
||||
@TableField("name")
|
||||
private Object name;
|
||||
@TableField("tag")
|
||||
private Object tag;
|
||||
|
||||
@TableField("orderdid")
|
||||
private Integer orderdid;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user