This commit is contained in:
wangjinlei
2024-03-15 10:19:03 +08:00
parent 0c740d33a0
commit 3cef570c97
388 changed files with 657 additions and 783 deletions

View File

@@ -0,0 +1,40 @@
package com.peanut.modules.common.entity;
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.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* 活动实体
*/
@Data
@TableName("sys_activity")
public class ActivityCouponEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
/**
* 关联活动ID
*/
private Integer activityId;
/**
* 关联优惠券Id
*/
private Integer couponId;
/**
* 关联商品Id
*/
private Integer productId;
}

View File

@@ -0,0 +1,99 @@
package com.peanut.modules.common.entity;
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("sys_activity")
public class ActivityEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
/**
* 活动名称
*/
private String activityName;
/**
* 活动类型 0长期活动1短期活动
*/
private String activityType;
/**
* 活动方式
* 0注册
* 1购物
* 2充值
* 3会员卡
* 4一路健康推广
*/
private String activityManner;
/**
* 活动内容
* 0购买商品
* 1满N送券
* 2满N减N
*/
private String activityContent;
/**
* 积分
*/
private Integer point;
/**
* 时效
*/
private String validity;
/**
* 活动开始时间
*/
private Date beginTime;
/**
* 活动结束时间
*/
private Date endTime;
/**
* 活动封面地址
*/
private String activityUrl;
/**
* 当前状态 0全部1生效2已过期
*/
private String currentState;
/**
* 备注
*/
private String remark;
/**
* 删除标志
*/
@TableLogic
private Integer delFlag;
/**
* 活动,商品,优惠券,集合
*/
private List<ActivityCouponEntity> activityCouponList;
}

View File

@@ -0,0 +1,70 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 作者表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-04 15:36:59
*/
@Data
@TableName("author")
public class AuthorEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 作者姓名
*/
private String authorName;
/**
* 性别
*/
private Integer sex;
/**
* 年龄
*/
private Integer age;
/**
* 简介
*/
private String introduction;
/**
* 电话
*/
private String tel;
/**
* 住址
*/
private String address;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
private Date updateTime;
/**
* 排序
*/
private Integer sort;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,25 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
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;
@Data
@TableName("base_area")
public class BaseAreaEntity implements Serializable {
@TableId(type = IdType.AUTO)
private Integer areaId;
private String title;
private String code;
@TableLogic
private int delFlag;
}

View File

@@ -0,0 +1,77 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 阅读记录
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("book_browse_records")
public class BookBrowseRecordsEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 用户id
*/
private Integer userId;
/**
* 图书id
*/
private Integer bookId;
/**
* 图书名称
*/
private String bookName;
/**
* 章节id
*/
@TableField(exist = false)
private Integer chapterId;
/**
* 章节名称
*/
@TableField(exist = false)
private String chapterName;
/**
* num
*/
@TableField(exist = false)
private Integer chapterNum;
/**
* 图片
*/
private String images;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
/**
* 排序
*/
private Integer sort;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,52 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-17 14:54:08
*/
@Data
@TableName("book_buy_config")
public class BookBuyConfigEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer priceTypeId;
/**
* 类型
*/
private String type;
/**
* 渠道
*/
private String qudao;
/**
* 真实价格
*/
private String realMoney;
/**
* 金额
*/
private String money;
/**
* vip开通月份
*/
private String month;
/**
* 充值名称
*/
private String description;
}

View File

@@ -0,0 +1,70 @@
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 com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import java.util.List;
/**
* 图书二级分类
*
*/
@Data
@TableName("book_category")
public class BookCategoryEntity {
/**
* 分类id
*/
@TableId
private Integer id;
/**
* 分类名称
*/
@TableField("name")
private String name;
/**
* 父分类id
*/
@TableField("book_cid")
private Integer bookCid;
/**
* 层级
*/
@TableField("book_level")
private Integer bookLevel;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
/**
* 排序
*/
@TableField("sort")
private Integer sort;
/**
* 商品数量
*/
@TableField("book_count")
private Integer bookCount;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@TableField(exist = false)
private List<BookCategoryEntity> children;
}

View File

@@ -0,0 +1,76 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-16 14:32:06
*/
@Data
@TableName("book_chapter_content")
public class BookChapterContentEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
*
*/
private Integer bookId;
/**
*
*/
private Integer bookChatperId;
/**
*
*/
private Integer number;
/**
*
*/
private String content;
/**
*
*/
private String voices;
private String otherContent;
/**
*
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
private Date updateTime;
@TableField(exist = false)
private String picAndWord;
/**
*
*/
private Integer sort;
/**
*
*/
private Integer level;
/**
*
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,77 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
* 章节表
* @author yl
* @email yl328572838@163.com
* @date 2022-08-12 09:53:25
*/
@Data
@TableName("book_chapter")
public class BookChapterEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 图书id
*/
private Integer bookId;
/**
* 章节号
*/
private Integer number;
/**
* 章节
*/
private String chapter;
/**
* 内容
*/
private String content;
/**
* 音频文件地址
*/
private String voices;
/**
*
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
private Date updateTime;
/**
* 0免费1限制
*/
private Integer sort;
/**
*
*/
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private Integer isFree;
@TableField(exist = false)
private String bookImage;
@TableField(exist = false)
private String picAndWord;
}

View File

@@ -0,0 +1,44 @@
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_clock_entry_chat")
public class BookClockEntryChat implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
private Integer entryId;
private Integer userId;
//子对话开启的层数
private Integer fid;
//回复于某人id
@TableField("p_user_id")
private Integer puserId;
private String content;
@TableField("p_chat_id")
private Integer pchatId;
private Date createTime;
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private List<String> imageList;
private String images;
}

View File

@@ -0,0 +1,36 @@
package com.peanut.modules.common.entity;
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;
@Data
@TableName("book_clock_entry")
public class BookClockEntryEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
private Integer bookId;
private String title;
private String image;
private String video;
private String content;
private Date createTime;
private Integer day;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,200 @@
package com.peanut.modules.common.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;
/**
* 图书类型 0普通 1中医经典 2国学经典
*/
private Integer bookType;
/**
* 价格
*/
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 Integer relationId;
/**
* 层级
*/
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;
/**
* 图书类型 中医经典 中医基础 各家学说 中医临床 文学 哲学
*/
@TableField(exist = false)
private String medicaldesBookType;
}

View File

@@ -0,0 +1,109 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* 文章表主表
*
*/
@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("finework")
private Integer finework;
/**
*开始时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 修改时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解;
private Date updateTime;
/**
* 点赞数
*/
@TableField("contlike")
private Integer contlike;
@TableField("del_flag")
@TableLogic
private Integer delflag;
@TableField("author")
private String author;
@TableField("publishername")
private String publishername;
@TableField("bookdesc")
private String bookdesc;
@TableField(exist = false)
private String bookimage;
@TableField(exist = false)
private String bookname;
@TableField(exist = false)
private String bookauthor;
@TableField(exist = false)
private List<BookForumCommentEntity> comment;
@TableField(exist = false)
private Integer commentNum;
//说话的人
@TableField(exist = false)
private MyUserEntity user;
}

View File

@@ -0,0 +1,85 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
import java.util.List;
/**
* 评价文章表
*
*/
@Data
@TableName("book_forum_comment")
public class BookForumCommentEntity {
/**
* id
*/
@TableId
private Integer id;
/**
*文章父id
*/
@TableField("bfa_id")
private Integer bfaid;
/**
*用户评论id
*/
@TableField("userid")
private Integer userid;
@TableField("puserid")
private Integer puserid;
@TableField("pid")
private Integer pid;
/**
*内容
*/
@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("contlike")
private Integer contlike;
/**
* 删除
*/
@TableField("del_flag")
@TableLogic
private Integer delflag;
@TableField("book_id")
private Integer bookid;
//发言者
@TableField(exist = false)
private MyUserEntity user;
//对谁说
@TableField(exist = false)
private MyUserEntity puser;
//子对话
@TableField(exist = false)
private List<BookForumCommentEntity> comments;
//子对话数量
@TableField(exist = false)
private Integer commentsNum;
}

View File

@@ -0,0 +1,74 @@
package com.peanut.modules.common.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;
}

View File

@@ -0,0 +1,51 @@
package com.peanut.modules.common.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;
}

View File

@@ -0,0 +1,47 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* 医案实体
*/
@Data
@TableName("book_medical_records")
public class BookMedicalRecordsEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer medicalRecordsId;
/**
* 图书id
*/
private Integer bookId;
/**
* 标题
*/
private String title;
/**
* 内容
*/
private String content;
/**
* 排序
*/
private Integer sort;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 删除标志
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,119 @@
package com.peanut.modules.common.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 java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 阅读进度表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("book_read_rate")
public class BookReadRateEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 用户id
*/
private Integer userId;
/**
* 图书id
*/
private Integer bookId;
/**
* 章节id
*/
private Integer chapterId;
/**
* 章节名称
*/
private String chapterName;
/**
* 章节百分比
*/
private Integer precent;
/**
* 章节内容id
*/
private Integer contentId;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
/**
*
*/
private Integer sort;
/**
*
*/
private Integer delFlag;
/**
* dom的Dep 用来存前端传来上下定位的
*/
private String domDep;
/**
* dom的Value 用来存前端传来上下定位的
*/
private String domValue;
/**
* dom的domVmCount 用来存前端传来上下定位的
*/
private Integer domVmCount;
/**
* 阅读ID
*/
private String domId;
/**
* 与底部的距离
*/
private Integer bottomGap;
/**
* 高度
*/
private Integer heightGap;
/**
* 与左边的距离
*/
private Integer leftGap;
/**
*与右边的距离
*/
private Integer rightGap;
/**
*与头部的距离
*/
private Integer topGap;
/**
* 宽度
*/
private Integer widthGap;
}

View File

@@ -0,0 +1,58 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 书架表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("book_shelf")
public class BookShelfEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
*
*/
private Integer bookId;
/**
* 书名
*/
private String bookName;
/**
*
*/
private Integer userId;
/**
*
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
*
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
/**
*
*/
private Integer sort;
/**
*
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,41 @@
package com.peanut.modules.common.entity;
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;
import java.util.List;
@Data
@TableName("book_teach_comment")
public class BookTeachCommentEntity {
private static final long serialVersionUID = 1L;
@TableId
@TableField("id")
private Integer id;
@TableField("parent_id")
private Integer parentId;
@TableField(exist = false)
private List<BookTeachCommentEntity> comments;
@TableField("user_id")
private Integer userId;
@TableField(exist = false)
private MyUserEntity user;
@TableField("teach_id")
private Integer teachId;
private String content;
@TableField("create_time")
private Date createTime;
@TableField("del_flag")
private Integer delFlag;
}

View File

@@ -0,0 +1,45 @@
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.util.Date;
@Data
@TableName("book_teach")
public class BookTeachEntity {
private static final long serialVersionUID = 1L;
@TableId
@TableField("teach_id")
private Integer teachId;
@TableField("book_id")
private Integer bookId;
private String title;
private Integer chapter;
private String voices;
private String images;
private String video;
private String content;
@TableField("create_time")
private Date createTime;
@TableField("del_flag")
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,26 @@
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;
@Data
@TableName("book_teach_like")
public class BookTeachLikeEntity {
private static final long serialVersionUID = 1L;
@TableId
@TableField("id")
private Integer id;
@TableField("user_id")
private Integer userId;
@TableField("teach_id")
private Integer teachId;
@TableField("del_flag")
private Integer delFlag;
}

View File

@@ -0,0 +1,192 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import com.peanut.modules.book.vo.response.ConsigneeVo;
import lombok.Data;
/**
* 订单表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("buy_order")
public class BuyOrder implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer orderId;
/**
* 订单编号
*/
private String orderSn;
/**
* 下单人ID
*/
private Integer userId;
/**
* 下单人姓名
*/
@TableField(exist = false)
private String userName;
@TableField(exist = false)
private Integer statusNum;
/**
* 收货人姓名
*/
@TableField("shipping_user")
private String shippingUser;
/**
* 收货人手机号
*/
private String userPhone;
/**
* 省
*/
private String province;
/**
* 市
*/
private String city;
/**
* 区
*/
private String district;
/**
* 地址
*/
private String address;
/**
* 支付方式 1微信2支付宝3ios内购 4虚拟币
*/
private String paymentMethod;
/**
* 订单金额
*/
private BigDecimal orderMoney;
/**
* 优惠金额
*/
private BigDecimal districtMoney;
/**
* 实收金额
*/
private BigDecimal realMoney;
/**
* 运费
*/
private BigDecimal shippingMoney;
/**
* 物流公司名称
*/
private String shippingCompName;
/**
* 物流单号
*/
private String shippingSn;
/**
* 下单时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
* 发货时间
*/
private Date shippingTime;
/**
* 订单状态
* 0: 待付款
* 1: 待发货
* 2: 已发货
* 3已完成
* 4: 交易失败
* 5: 已过期
*/
private String orderStatus;
/**
* 交易成功时间
*/
private Date successTime;
/**
* 优惠券Id
*/
private Integer couponId;
/**
* 优惠券名称
*/
private String couponName;
@TableLogic
private Integer delFlag;
// TODO 新版本上线后删除该属性
@TableField(exist = false)
private List<BuyOrderDetail> products;
@TableField(exist = false)
private List<BuyOrderProduct> productList;
@TableField(exist = false)
private String buyType;
/**
* vip order point
*/
private String orderType;
/**
* 快递单号
*/
private String expNo;
/**
* 是否存在发货的商品 0不存在1已存在
*/
private String isSend;
/**
* 地址id
*/
private Integer addressId;
/**
* 订单备注
*/
private String remark;
/**
* 快递鸟订单编号
*/
private String orderCode;
/**
* 支付时间
*/
private Date paymentDate;
@TableField("product_id")
private String productId;
@TableField("record_id")
private Integer recordId;
@TableField(exist = false)
private Long timestamp;
@TableField(exist = false)
private MyUserEntity user;
@TableField(exist = false)
private List<ExpressOrder> expressList;
private int addressModified;
@TableField(exist = false)
private ConsigneeVo consigneeVo;
}

View File

@@ -0,0 +1,103 @@
package com.peanut.modules.common.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 java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 商品订单详情表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
* @modified Cauchy
* @date 2023-10-07 13:06:00
*/
@Data
@TableName("buy_order_detail")
public class BuyOrderDetail implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 订单详情id
*/
@TableId
private Long id;
/**
* 订单表id
*/
private Integer orderId;
/**
* 用户id
*/
private Integer userId;
/**
* 商品id
*/
private Integer productId;
/**
* 商品名称
*/
private String productName;
/**
* 商品数量
*/
private Integer quantity;
/**
* 商品单价
*/
private BigDecimal productPrice;
/**
* 商品重量
*/
private BigDecimal weight;
/**
* 商品类型
*/
private String productType;
/**
* 订单状态 0-待支付 1-待发货 2-待收货
*/
private String orderStatus;
/**
* 备注
*/
private String remark;
/**
* 下单时间
*/
@TableField(fill = FieldFill.INSERT)
private Date creatTime;
/**
* 图片
*/
@TableField(exist = false)
private String image;
/**
* 面单html
*/
private String expressBillTemplate;
/**
* 商品图片地址
*/
private String productUrl;
/**
* 评价 ID
*/
private Integer recordId;
/**
* 快递单号
*/
private String expressBillNo;
/**
* 快递公司编码
*/
private String expressCompanyCode;
}

View File

@@ -0,0 +1,58 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
/**
* @Description: 订单-商品
* @Author: Cauchy
* @CreateTime: 2023/10/19
*/
@Data
@TableName("buy_order_product")
public class BuyOrderProduct {
/**
* 主键 ID
*/
private int id;
/**
* 订单 ID
*/
private int orderId;
/**
* 商品 ID
*/
private int productId;
/**
* 商品数量
*/
private int quantity;
/**
* 商品价格
*/
private BigDecimal realPrice;
/**
* 快递订单 ID
*/
private int expressOrderId;
/**
* 评价 ID
*/
private int recordId;
/**
* 删除标识
*/
private int delFlag;
/**
* 发货标识
*/
private int shipped;
@TableField(exist = false)
private ShopProduct product;
@TableField(exist = false)
private ExpressOrder expressOrder;
}

View File

@@ -0,0 +1,50 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import lombok.Data;
/**
* 市
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-27 16:07:59
*/
@Data
@TableName("base_city")
public class City implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(type = IdType.AUTO)
private Long cityId;
/**
* 所属省
*/
private Long provId;
/**
* 城市名称
*/
private String cityName;
/**
*
*/
private Date createDate;
/**
* 区域编码
*/
private String regionCode;
@TableField(exist = false)
private List<County> countyList;
}

View File

@@ -0,0 +1,48 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 县/区
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-27 16:07:59
*/
@Data
@TableName("base_county")
public class County implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(type = IdType.AUTO)
private Long countyId;
/**
*
*/
private Long cityId;
/**
* 县/区名称
*/
private String countyName;
/**
*
*/
private Date createDate;
/**
* 区域编码
*/
private String regionCode;
}

View File

@@ -0,0 +1,108 @@
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 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-10-28 17:38:29
*/
@Data
@TableName("sms_coupon")
public class CouponEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Long id;
/**
* 优惠券类型 0现金1折扣
*/
private Integer couponType;
/**
* 优惠券名称
*/
private String couponName;
/**
* 优惠券面额
*/
private BigDecimal couponAmount;
/**
* 优惠券封面图
*/
private String couponUrl;
/**
* 每人限领
*/
private Integer limitedCollar;
/**
* 时效
*/
private String validity;
/**
* 生效方式 0领取日生效 1 设置生效日期
*/
private Integer takeEffectType;
/**
* 生效日期
*/
private Date takeEffectDate;
/**
* 截止日期
*/
private Date expirationDate;
/**
* 总发行数量
*/
public Integer totalCirculation;
/**
* 当前状态 0全部1生效2已过期
*/
private String currentState;
/**
* 备注
*/
private String remark;
/**
* 删除标志
*/
@TableLogic
private Integer delFlag;
/**
* 商品类型 0: 商品 1电子书
*/
private Integer couponProType;
/**
* 使用门槛
*/
private Integer useLevel;
}

View File

@@ -0,0 +1,80 @@
package com.peanut.modules.common.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 java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Data
@TableName("sms_coupon_history")
public class CouponHistoryEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Long id;
/**
* 优惠券id
*/
private Long couponId;
/**
* 会员id
*/
private Long memberId;
/**
* 订单id
*/
private Long orderId;
/**
* 优惠券码
*/
private String couponCode;
/**
* 领取人昵称
*/
private String memberNickname;
/**
* 获取类型0->后台赠送1->主动获取
*/
private Integer getType;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
* 使用状态0->未使用1->已使用2->已过期
*/
private Integer useStatus;
/**
* 使用时间
*/
private Date useTime;
/**
* 订单号码
*/
private String orderSn;
@TableField(exist = false)
private String couponName;
/**
* 商品类型 0: 商品 1电子书
*/
private Integer couponProType;
}

View File

@@ -0,0 +1,44 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Data
@TableName("sms_coupon_product_category_relation")
public class CouponProductCategoryRelationEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Long id;
/**
* 优惠券id
*/
private Long couponId;
/**
* 商品分类id
*/
private Long productCategoryId;
/**
* 商品分类名称
*/
private String productCategoryName;
/**
* 父分类名称
*/
private String parentCategoryName;
}

View File

@@ -0,0 +1,44 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 17:38:29
*/
@Data
@TableName("sms_coupon_product_relation")
public class CouponProductRelationEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Long id;
/**
* 优惠券id
*/
private Long couponId;
/**
* 商品id
*/
private Long productId;
/**
* 商品名称
*/
private String productName;
/**
* 商品条码
*/
private String productSn;
}

View File

@@ -0,0 +1,40 @@
package com.peanut.modules.common.entity;
import lombok.Data;
/**
* @Description: 货品 Value Object
* @Author: Cauchy
* @CreateTime: 2023/10/16
*/
@Data
public class ExpressCommodity {
/**
* 商品名称
*/
private String GoodsName;
/**
* 商品编码
*/
private String GoodsCode;
/**
* 商品数量
*/
private Integer Goodsquantity;
/**
* 商品价格
*/
private Double GoodsPrice;
/**
* 商品重量
*/
private Double GoodsWeight;
/**
* 商品描述
*/
private String GoodsDesc;
/**
* 商品体积
*/
private Double GoodsVol;
}

View File

@@ -0,0 +1,37 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
/**
* @Description: 快递公司实体类
* @Author: Cauchy
* @CreateTime: 2023/10/16
*/
@Data
@TableName("express_company")
public class ExpressCompany implements Serializable {
/**
* ID
*/
private int id;
/**
* 快递公司名称
*/
private String name;
/**
* 快递公司编码
*/
private String code;
/**
* 创建时间
*/
private Date createTime;
/**
* 删除标识
*/
private int delFlag;
}

View File

@@ -0,0 +1,46 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* @Description: 快递费实体类
* @Author: Cauchy
* @CreateTime: 2023/10/16
*/
@Data
@TableName("express_fee")
public class ExpressFee implements Serializable {
/**
* ID
*/
private int id;
/**
* 快递公司代码
*/
private String expressCode;
/**
* 目的地代码
*/
private String destCode;
/**
* 首重费用
*/
private BigDecimal firstWeightFee;
/**
* 续重
*/
private BigDecimal additionalWeightFee;
/**
* 创建时间
*/
private Date createTime;
/**
* 删除标识
*/
private int delFlag;
}

View File

@@ -0,0 +1,107 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
/**
* @Description: 快递订单
* @Author: Cauchy
* @CreateTime: 2023/10/16
*/
@Data
@TableName("express_order")
public class ExpressOrder {
/**
* ID
*/
@TableField(value = "id")
@TableId(type = IdType.AUTO)
private int id;
/**
* 订单Sn
*/
private String orderSn;
/**
* 省份
*/
private String province;
/**
* 城市
*/
private String city;
/**
* 区县
*/
private String county;
/**
* 收件人姓名
*/
private String consigneeName;
/**
* 收件人电话
*/
private String consigneeMobile;
/**
* 收件人详细地址
*/
private String address;
/**
* 快递公司代码
*/
private String expressCompanyCode;
/**
* 备注
*/
private String remark;
/**
* 快递费
*/
private BigDecimal expressFee;
/**
* 总重量
*/
private BigDecimal totalWeight;
/**
* 创建时间
*/
private Date createTime;
/**
* 删除标识
*/
private int delFlag;
/**
* 物品信息
*/
@TableField(exist = false)
private List<ExpressCommodity> Commodity;
/**
* 面单的string
*/
@TableField(exist = false)
private String printString;
/**
* 商品列表
*/
@TableField(exist = false)
private List<ShopProduct> products;
/**
* 快递单号
*/
private String expressOrderSn;
/**
* 是否已打印0未打印1已打印
*/
private Integer templatePrinted;
/**
* 面单模板
*/
private String printTemplate;
}

View File

@@ -0,0 +1,51 @@
package com.peanut.modules.common.entity;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
/**
* @Description: 快递查询返回结果 Value Object
* @Author: Cauchy
* @CreateTime: 2023/10/17
*/
@Data
public class ExpressQueryResponse implements Serializable {
/**
* 用户 ID
*/
private String EBusinessID;
/**
* 快递公司编码
*/
private String ShipperCode;
/**
* 快递单号
*/
private String LogisticCode;
/**
* 是否成功
*/
private boolean Success;
/**
* 原因
*/
private String Reason;
/**
* 状态
* 普通物流状态:
* 0-暂无轨迹信息
* 1-已揽收
* 2-在途中
* 3-签收
* 4-问题件
* 5-转寄
* 6-清关
*/
private String State;
/**
* 轨迹
*/
private List<Trace> Traces;
}

View File

@@ -0,0 +1,36 @@
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;
@Data
@TableName("medicaldes_book")
public class MedicaldesBook implements Serializable {
private static final long serialVersionUID = 1L;
@TableField(exist = false)
private BookEntity book;
@TableField(exist = false)
private com.peanut.modules.book.entity.SysDictDataEntity sysDictData;
@TableId
private Integer id;
private Integer bookId;
/**
* 书类型idsys_dict_data-medicaldesBookType
*/
private Integer typeId;
private Integer sort;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,59 @@
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;
@Data
@TableName("medicaldes_inherit")
public class MedicaldesInherit implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
@TableField(exist = false)
private Integer type;
@TableField(exist = false)
private Integer count;
/**
* 传承人
*/
private String name;
/**
* 超链接
*/
private String url;
/**
* 图片
*/
private String img;
/**
* 简介内容
*/
private String content;
/**
* 所在城市
*/
private Integer cityId;
@TableField(exist = false)
private int sort;
@TableField(exist = false)
private String provinceName;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,34 @@
package com.peanut.modules.common.entity;
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;
@Data
@TableName("medicaldes_inherit_relation")
public class MedicaldesInheritRelation implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
/**
* 传承人id
*/
private Integer inheritId;
/**
* 传承人类型idsys_dict_data表inheritType
*/
private Integer typeId;
/**
* 排序
*/
private Integer sort;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,41 @@
package com.peanut.modules.common.entity;
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;
@Data
@TableName("medicaldes_light")
public class MedicaldesLight implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
/**
* 名称
*/
private String name;
/**
* 文件地址
*/
private String url;
/**
* 类型1吴门之歌2巴山夜雨3吴门之徽
*/
private Integer type;
/**
* 排序
*/
private Integer sort;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,73 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("medicinal_drug")
public class MedicinalDrug {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
/**
* 名称
*/
private String name;
/**
* 简述
*/
private String description;
/**
* 英文名称
*/
private String englishName;
/**
* 汉语拼音
*/
private String pinyinName;
/**
* 药品品类
*/
private String kind;
/**
* 处方类型
*/
private String prescriptionType;
/**
* 医保类型
*/
private String insuranceType;
/**
* 0中药1西药
*/
private int type;
/**
* 详细信息
*/
private String information;
/**
* 排序
*/
private Integer sort;
/**
* 点击量
*/
private Integer hits;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,84 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("medicinal_materials")
public class MedicinalMaterials {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
/**
* 名称
*/
private String name;
/**
* 图片
*/
private String img;
/**
* 简述
*/
private String description;
/**
* 拉丁名
*/
private String latinname;
/**
* 别名
*/
private String othername;
/**
* 功效
*/
private String effect;
/**
* 味
*/
private String taste;
/**
* 性
*/
private String property;
/**
* 归
*/
private String tropism;
/**
* 类型
*/
private String type;
/**
* 详细信息
*/
private String information;
/**
* 排序
*/
private Integer sort;
/**
* 点击量
*/
private Integer hits;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,48 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@Data
@TableName("meridians")
public class Meridians {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
/**
* 名称
*/
private String name;
/**
* 图片
*/
private String img;
/**
* 简述
*/
private String description;
/**
* 歌
*/
private String song;
/**
* 详细信息
*/
private String information;
/**
* 排序
*/
private Integer sort;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,142 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
/**
*
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-10 14:20:12
*/
@Data
@TableName("user")
public class MyUserEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 姓名
*/
private String name;
/**
* 年龄
*/
private Integer age;
/**
* 性别
*/
private Integer sex;
/**
* 头像
*/
private String avatar;
/**
* 昵称
*/
private String nickname;
/**
* 电话
*/
private String tel;
/**
* 邮箱
*/
private String email;
/**
* 密码
*/
private String password;
/**
* 0-普通 1-vip
*/
private String vip;
/**
* vip 有效期
*/
private Date vipStartTime;
/**
* vip 有效期
*/
private Date vipValidtime;
/**
* 花生币
*/
private BigDecimal peanutCoin;
/**
* 阅读时间
*/
private Date readTime;
/**
* 最后登录时间
*/
private Date lastLoginTime;
/**
* 一路健康oid
*/
private String yljkOid;
/**
* 是否有脉穴的查看权限
*/
private Integer pointPower;
/**
* 是否有时辰取穴的权限
*/
private Integer tgdzPower;
/**
* 五运六气权限
*/
private Integer wylqPower;
/**
* 吴门验方权限
*/
private Integer prescriptAPower;
/**
* 肿瘤古方权限
*/
private Integer prescriptBPower;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
private Date updateTime;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
/**
* 短信验证码
*/
@TableField(exist = false)
private String code;
@TableField(exist = false)
private Integer conponsCount;
private String remark;
}

View File

@@ -0,0 +1,64 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 购物车
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("order_cart")
public class OrderCartEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer cartId;
/**
* 用户id
*/
private Integer userId;
/**
* 商品id
*/
private Integer productId;
/**
* 套装参数
*/
private Integer productBook;
/**
* 商品数量
*/
private Integer productAmount;
/**
* 商品单价
*/
private BigDecimal price;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)//更新注解
private Date updateTime;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,69 @@
package com.peanut.modules.common.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 java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 充值订单表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("pay_payment_order")
public class PayPaymentOrderEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@TableId
private Long id;
/**
* 用户id
*/
private Integer userId;
/**
* 充值金额
*/
private BigDecimal rechargeAmount;
/**
* 充值渠道
*/
private String rechargeChannel;
/**
* 订单号
*/
private String orderId;
/**
* 实际充值金额
*/
private BigDecimal realAmount;
/**
* 充值状态
*/
private String rechargeStatus;
/**
* 下单时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 支付成功时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date successTime;
private String userName;
private String tel;
}

View File

@@ -0,0 +1,81 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.joda.time.DateTime;
import javax.persistence.Column;
import javax.xml.soap.Text;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 微信订单表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("pay_wechat_order")
public class PayWechatOrderEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Long id;
/**
* 预支付交易会话标识
*/
private String prepayId;
/**
* 用户Id
*/
private Integer customerId;
/**
* 订单编号
*/
private String orderSn;
/**
* 支付金额
*/
private BigDecimal totalAmount;
/**
* 创建订单时间
*/
private Date createTime;
/**
* 系统日志
*/
private String systemLog;
/**
* 交易类型
*/
private String payType;
/**
* 订单Id
*/
private String orderId;
/**
* 购买配置id
*/
private Integer buyOrderId;
// private Date endtime;
}

View File

@@ -0,0 +1,167 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 支付宝订单表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:27:44
*/
@Data
@TableName("pay_zfb_order")
public class PayZfbOrderEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Long id;
/**
* 唯一标识符。 这个标识符可以用来识别特定的用户并进行相关的操作。 通过微信的开放接口来获取用户的customerOid字段。
*/
private String customerid;
/**
* 支付宝生成的商户订单号,用于唯一标识一笔交易。商户需要保证商户订单号在自身系统中唯一,且不重复。
*/
private String outTradeNo;
/**
* 订单号 支付宝交易号
*/
private String tradeNo;
/**
* 异步通知时间指示支付宝服务器向商户发送异步通知的时间。该字段的格式为yyyy-MM-dd HH:mm:ss。
*/
private Date notifyTime;
/**
* 支付宝用于标识当前异步通知的类型的字段。具体来说,
* 该字段的值表示当前异步通知的类型,例如交易支付成功、退款成功等。通过这个字段,开发者可以根据不同的类型进行不同的业务处理。
*/
private String notifyType;
/**
* 服务器用来标识该交易的唯一性的一个参数也就是交易通知中的ID。当商户接收到支付宝服务器的交易通知消息之后
* 可以通过该参数来判断本次通知是否是重复通知如果notifyId已经被处理过那么就可以忽略该交易通知以避免重复处理。
*/
private String notifyId;
/**
* appid
*/
private String appId;
/**
* 标识授权商户的AppId即在支付宝开放平台创建的应用的AppId。
* 在接入支付宝支付时商户需要使用自己的AppId进行授权将authAppId字段设置为正确的值
* 以确保支付宝能够正确地识别授权商户的身份。
*/
private String authAppId;
/**charset字段在支付宝支付中是用来指定商户网站使用的编码格式它主要是用来解决中文乱码的问题。
* 当商户在支付宝平台上进行支付接口的对接时,
* 需要将charset字段设置为UTF-8编码格式以确保交易信息能够正常传输和处理
*
*/
private String charset;
/**
表示接口的版本号
*/
private String version;
/**
* 指定签名算法类型。在请求支付宝接口时,需要使用商户私钥对请求参数进行签名,以确保请求参数的完整性和安全性
*/
private String signType;
/**
* 签名
*/
private String sign;
/**
*
*/
private String outBizNo;
/**
*
*/
private String buyerId;
/**
*
*/
private String buyerLogonId;
/**
*
*/
private String sellerId;
/**
*
*/
private String sellerEmail;
/**
*
*/
private String tradeStatus;
/**
*
*/
private String totalAmount;
/**
*
*/
private String receiptAmount;
/**
*
*/
private String invoiceAmount;
/**
*
*/
private String buyerPayAmount;
/**
*
*/
private String pointAmount;
/**
*
*/
private String refundFee;
/**
*
*/
private String subject;
/**
* 支付宝支付中的Body字段主要用于传输具体的交易信息例如商品详情、价格、数量等。在调用支付宝支付接口时
* 开发者需要将交易相关的信息以JSON字符串的形式作为Body字段传递给支付宝接口以便支付宝服务器能够正确处理该笔交易。
*/
private String body;
/**
*
*/
private Date gmtCreate;
/**
*
*/
private Date gmtPayment;
/**
*
*/
private Date gmtRefund;
/**
*
*/
private Date gmtClose;
/**
*
*/
private String fundBillList;
/**
*
*/
private String voucherDetailList;
/**
*
*/
private String relevanceoid;
}

View File

@@ -0,0 +1,31 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@Data
@TableName("point_category")
public class PointCategoryEntity implements Serializable {
@TableId(type = IdType.AUTO)
private Integer id;
private String title;
private Integer pid;
private Integer sort;
private Date createTime;
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private List<PointCategoryEntity> children;
}

View File

@@ -0,0 +1,49 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
@Data
@TableName("point")
public class PointEntity implements Serializable {
@TableId(type = IdType.AUTO)
private Integer id;
private String title;
private String images;
@TableField(exist = false)
private List<String> imageList;
private Integer pointCategoryId;
private String alias;
private String meridian;
private String position;
private String anatomy;
private String indication;
private String compatibility;
private String literature;
private Integer sort;
private Date createTime;
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private String categoryString;
}

View File

@@ -0,0 +1,30 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.List;
@Data
@TableName("prescript_category")
public class PrescriptCategoryEntity {
@TableId(type = IdType.AUTO)
private Integer prescriptCategoryId;
private String title;
private Integer pid;
private Integer sort;
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private PrescriptCategoryEntity child;
@TableField(exist = false)
private List<PrescriptCategoryEntity> children;
}

View File

@@ -0,0 +1,49 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.Date;
import java.util.List;
@Data
@TableName("prescript")
public class PrescriptEntity {
@TableId(type = IdType.AUTO)
private Integer prescriptId;
private Integer prescriptCategoryId;
private String title;
private String images;
private String source;
private String doseOld;
private String doseNow;
private String preUsage;
private String preSong;
private String indications;
private Integer sort;
private Date createTime;
@TableLogic
private Integer delFlag;
@TableField(exist = false)
private String letter;
@TableField(exist = false)
private List<String> imageList;
@TableField(exist = false)
private PrescriptCategoryEntity prescriptCategoryEntity;
}

View File

@@ -0,0 +1,46 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
import lombok.Data;
/**
* 省
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-27 16:07:59
*/
@Data
@TableName("base_province")
public class Province implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId(type = IdType.AUTO)
private Long provId;
/**
* 省名称
*/
private String provName;
/**
*
*/
private Date createDate;
/**
* 区域编码
*/
private String regionCode;
@TableField(exist = false)
private List<City> cityList;
}

View File

@@ -0,0 +1,55 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 出版商表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-04 15:36:59
*/
@Data
@TableName("publisher")
public class Publisher implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
* 出版商名称
*/
private String publisherName;
/**
* 出版商简介
*/
private String introduction;
/**
* 联系方式
*/
private Integer tel;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date updateTime;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,57 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 秒杀商品表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 11:24:05
*/
@Data
@TableName("seckill_prod_relation")
public class SeckillProdRelationEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer id;
/**
*
*/
private String promotionId;
/**
* 场次id
*/
private Integer promotionSeckillId;
/**
* 商品id
*/
private Integer prodId;
/**
* 秒杀价格
*/
private BigDecimal seckillPrice;
/**
* 秒杀数量
*/
private String seckillCount;
/**
* 限制购买
*/
private String seckillLimit;
/**
* 权重
*/
private String seckillSort;
}

View File

@@ -0,0 +1,70 @@
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 java.io.Serializable;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
/**
* 商品三级分类
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-30 15:06:20
*/
@Data
@TableName("shop_category")
public class ShopCategoryEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 分类id
*/
@TableId
private Long catId;
/**
* 分类名称
*/
private String name;
/**
* 父分类id
*/
private Long parentCid;
/**
* 层级
*/
private Integer catLevel;
/**
* 是否显示[0-不显示1显示]
*/
@TableLogic(value="1",delval="0")
private Integer showStatus;
/**
* 排序
*/
private Integer sort;
/**
* 图标地址
*/
private String icon;
/**
* 计量单位
*/
private String productUnit;
/**
* 商品数量
*/
private Integer productCount;
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@TableField(exist = false)
private List<ShopCategoryEntity> children;
}

View File

@@ -0,0 +1,185 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* 商品表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-11-30 10:30:56
*/
@Data
@TableName("shop_product")
public class ShopProduct implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer productId;
/**
* 商品名称
*/
private String productName;
/**
* 商品价格
*/
private BigDecimal price;
/**
* 是否为最新上市
*/
private Integer isNew;
/**
* 商品活动价格
*/
private BigDecimal activityPrice;
/**
* 商品重量
*/
private Integer weight;
/**
* 上架状态
*/
private Integer publishStatus;
/**
* 商品介绍
*/
private String productDetails;
/**
* 商品分类id
*/
private Integer productPid;
/**
* 商品 类型 0 - 预售 1 - 在售
*/
private String productType;
/**
* 商品库存
*/
private Integer productStock;
/**
* 商品图首页
*/
private String productImages;
/**
* 商品 多图
*/
private String productImageList;
/**
* 商品销量
*/
private String productSalesVolume;
/**
* 创建时间
*/
private Date createTime;
/**
* 更新时间
*/
private Date updateTime;
/**
* 删除标记
*/
@TableLogic
private Integer delFlag;
/**
* 排序
*/
private Integer sort;
@TableField(exist = false)
private List<Integer> poids;
/**
* 作者
*/
private String author;
/**
* 出版方
*/
private String publisher;
/**
* 出版时间
*/
@TableField(value = "pub_date", updateStrategy = FieldStrategy.IGNORED)
private String pubDate;
/**
* 开本
*/
private String format;
/**
* 页数
*/
@TableField(value = "page_num", updateStrategy = FieldStrategy.IGNORED)
private Integer pageNum;
/**
* 内文用纸材质
*/
private String quality;
/**
* 总销量
*/
private Integer sumSales;
/**
* 商品类型 01: 画册 02书 04仪器03预售书
*/
private String goodsType;
private String goodsTypeCode;
/**
* 是否包邮 0包邮 1不包邮
*/
private Integer isFreeMail;
/**
* 绑定电子书id,
*/
@TableField("book_ids")
private String bookId;
/**
* 多个电子书Id
*/
@TableField(exist = false)
private ArrayList<String> bookids;
/**
* 实体书list
*/
@TableField(exist = false)
private List<BookEntity> books;
/**
* 多个电子书Id ArrayList<Map<String,String>>
*/
@TableField(exist = false)
private List<Object> bookidsimages;
@TableField(exist = false)
private List<Object> shoproudBook;
@TableField(exist = false)
private List<Object> shoproudIds;
@TableField(exist = false)
private List<String> shoproudLabels;
/**
* 数量
*/
@TableField(exist = false)
private Integer quantity;
/**
* 属于的订单,特殊情况下启用
*/
@TableField(exist = false)
private String orderSn;
}

View File

@@ -0,0 +1,49 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.util.ArrayList;
import java.util.Date;
@Data
@TableName("shop_product_book")
public class ShopProductBookEntity {
/**
* 主键 id
*/
@TableId
private Integer id;
/**
* 商品id
*/
@TableField("product_id")
private Integer productId;
/**
* 图书id
*/
@TableField("book_id")
private Integer bookId;
/**
* 多个图书id (备用)
*/
@TableField("book_ids")
private Integer bookIds;
/**
* 删除标记
*/
@TableField("del_flag")
@TableLogic
private Integer delFlag;
/**
* 创建日期
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 书籍列表
*/
@TableField(exist = false)
private ArrayList<Integer> bookIdList;
}

View File

@@ -0,0 +1,32 @@
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.util.Date;
@Data
@TableName("shop_product_label")
public class ShopProductLabelEntity {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer splId;
@TableField("label_name")
private String labelName;
private Date ctime;
@TableField("del_flag")
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,37 @@
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.util.List;
@Data
@TableName("shop_product_to_label")
public class ShopProductToLabelEntity {
@TableId
private Integer ptlId;
private Integer productId;
private Integer splId;
@TableField("del_flag")
@TableLogic
private Integer delFlag;
/**
* 不存入数据库,返回商品详情
*/
@TableField(exist = false)
private List<ShopProduct> shopProducts;
@TableField(exist = false)
private List<Object> shopp;
}

View File

@@ -0,0 +1,52 @@
package com.peanut.modules.common.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 java.io.Serializable;
import java.util.Date;
import java.util.List;
import lombok.Data;
/**
* 秒杀库存表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-28 11:24:05
*/
@Data
@TableName("shop_seckill")
public class ShopSeckillEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* id
*/
@TableId
private Long seckillId;
/**
* 名称
*/
private String nam;
/**
* 秒杀开启时间
*/
private Date startTime;
/**
* 秒杀结束时间
*/
private Date endTime;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
@TableField(exist = false)
private List<SeckillProdRelationEntity> relationProd;
}

View File

@@ -0,0 +1,17 @@
package com.peanut.modules.common.entity;
import lombok.Data;
import java.util.Date;
@Data
public class Trace {
/**
* 轨迹时间
*/
private Date AcceptTime;
/**
* 轨迹描述
*/
private String AcceptStation;
}

View File

@@ -0,0 +1,64 @@
package com.peanut.modules.common.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 java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 交易明细
*
* @author yl
* @email yl328572838@163.com
* @date 2022-08-29 15:47:50
*/
@Data
@TableName("transaction_details")
public class TransactionDetailsEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer transactionId;
/**
* 用户id
*/
private Integer userId;
/**
* 充值 支付 赠送优惠券.....
*/
private String orderType;
/**
* 变动金额
*/
private BigDecimal changeAmount;
/**
* 关联id
*/
private Integer relationId;
/**
* 备注
*/
private String remark;
/**
* 余额
*/
private BigDecimal userBalance;
@TableField(fill = FieldFill.INSERT)//创建注解
private Date createTime;
private String userName;
private String tel;
private String note;
}

View File

@@ -0,0 +1,59 @@
package com.peanut.modules.common.entity;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
@Data
@TableName("user_address")
public class UserAddress implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 自增 ID
*/
@TableId
private int id;
/**
* 会员 ID
*/
private Integer userId;
/**
* 收货人
*/
private String consigneeName;
/**
* 收货人手机号码
*/
private String consigneePhone;
/**
* 区域代码
*/
private String regionCode;
/**
* 详细地址
*/
private String detailAddress;
/**
* 默认
*/
private Integer isDefault;
/**
* 删除标识
*/
@TableLogic
private Integer delFlag;
/**
* 创建时间
*/
@TableField(fill = FieldFill.INSERT)
private Date createTime;
/**
* 更新时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date updateTime;
}

View File

@@ -0,0 +1,22 @@
package com.peanut.modules.common.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;
}

View File

@@ -0,0 +1,30 @@
package com.peanut.modules.common.entity;
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;
@Data
@TableName("user_book_clock")
public class UserBookClockEntity implements Serializable {
private static final long serialVersionUID = 1L;
@TableId
private Integer id;
private Integer bookId;
private Integer userId;
private String clocks;
private Date beginDate;
@TableLogic
private Integer delFlag;
}

View File

@@ -0,0 +1,63 @@
package com.peanut.modules.common.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 java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* 用户购买书籍表
*
* @author yl
* @email yl328572838@163.com
* @date 2022-10-18 16:28:20
*/
@Data
@TableName("user_ebook_buy")
public class UserEbookBuyEntity implements Serializable {
private static final long serialVersionUID = 1L;
/**
*
*/
@TableId
private Integer buyId;
/**
* 用户id
*/
private Integer userId;
/**
* 书id
*/
private Integer bookId;
/**
* 书名
*/
private String bookName;
/**
* 1- 支付宝 2-微信 3 ios
*/
private String payType;
/**
* 支付时间
*/
@TableField(fill = FieldFill.INSERT_UPDATE)
private Date payTime;
/**
* 支付状态 1-成功 2-失败
*/
private String payStatus;
private String image;
private String author;
private String ordersn;
}

View File

@@ -0,0 +1,66 @@
package com.peanut.modules.common.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;
}

View File

@@ -0,0 +1,79 @@
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 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;
}

View File

@@ -0,0 +1,80 @@
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 javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;
@Data
@TableName("user_record")
public class UserRecord {
@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("product_id")
private Integer productId;
//订单号
@TableField("orderSn")
private String orderSn;
// 关联客户
@TableField("userid")
private Integer userid;
//逻辑删除未删除0 -1删除
@TableField("delFlag")
@TableLogic
private Integer delflag;
//关联图书id
@TableField("bookid")
private Integer bookid;
@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;
@TableField(exist = false)
private Object avatar;
@TableField(exist = false)
private Object nickname;
}