模块构建完成

This commit is contained in:
xiongxiaoyang
2020-05-28 02:12:24 +08:00
parent 93189d92cc
commit c6e6a1df9f
170 changed files with 14777 additions and 212 deletions

View File

@ -0,0 +1,358 @@
package com.java2nb.novel.book.entity;
import io.swagger.annotations.ApiModelProperty;
import javax.annotation.Generated;
import java.util.Date;
public class Book {
@ApiModelProperty(value = "主键")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long id;
@ApiModelProperty(value = "作品方向0男频1女频'")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Byte workDirection;
@ApiModelProperty(value = "分类ID")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Integer catId;
@ApiModelProperty(value = "分类名")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String catName;
@ApiModelProperty(value = "小说封面")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String picUrl;
@ApiModelProperty(value = "小说名")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String bookName;
@ApiModelProperty(value = "作者id")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long authorId;
@ApiModelProperty(value = "作者名")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String authorName;
@ApiModelProperty(value = "书籍描述")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String bookDesc;
@ApiModelProperty(value = "评分,预留字段")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Float score;
@ApiModelProperty(value = "书籍状态0连载中1已完结")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Byte bookStatus;
@ApiModelProperty(value = "点击量")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long visitCount;
@ApiModelProperty(value = "总字数")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Integer wordCount;
@ApiModelProperty(value = "评论数")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Integer commentCount;
@ApiModelProperty(value = "最新目录ID")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long lastIndexId;
@ApiModelProperty(value = "最新目录名")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String lastIndexName;
@ApiModelProperty(value = "最新目录更新时间")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Date lastIndexUpdateTime;
@ApiModelProperty(value = "是否收费1收费0免费")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Byte isVip;
@ApiModelProperty(value = "状态0入库1上架")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Byte status;
@ApiModelProperty(value = "更新时间")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Date updateTime;
@ApiModelProperty(value = "创建时间")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Date createTime;
@ApiModelProperty(value = "爬虫源站ID")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Integer crawlSourceId;
@ApiModelProperty(value = "抓取的源站小说ID")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String crawlBookId;
@ApiModelProperty(value = "最后一次的抓取时间")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Date crawlLastTime;
@ApiModelProperty(value = "是否已停止更新0未停止1已停止")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Byte crawlIsStop;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getId() {
return id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setId(Long id) {
this.id = id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Byte getWorkDirection() {
return workDirection;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setWorkDirection(Byte workDirection) {
this.workDirection = workDirection;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Integer getCatId() {
return catId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCatId(Integer catId) {
this.catId = catId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getCatName() {
return catName;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCatName(String catName) {
this.catName = catName == null ? null : catName.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getPicUrl() {
return picUrl;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setPicUrl(String picUrl) {
this.picUrl = picUrl == null ? null : picUrl.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getBookName() {
return bookName;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setBookName(String bookName) {
this.bookName = bookName == null ? null : bookName.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getAuthorId() {
return authorId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setAuthorId(Long authorId) {
this.authorId = authorId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getAuthorName() {
return authorName;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setAuthorName(String authorName) {
this.authorName = authorName == null ? null : authorName.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getBookDesc() {
return bookDesc;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setBookDesc(String bookDesc) {
this.bookDesc = bookDesc == null ? null : bookDesc.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Float getScore() {
return score;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setScore(Float score) {
this.score = score;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Byte getBookStatus() {
return bookStatus;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setBookStatus(Byte bookStatus) {
this.bookStatus = bookStatus;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getVisitCount() {
return visitCount;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setVisitCount(Long visitCount) {
this.visitCount = visitCount;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Integer getWordCount() {
return wordCount;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setWordCount(Integer wordCount) {
this.wordCount = wordCount;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Integer getCommentCount() {
return commentCount;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCommentCount(Integer commentCount) {
this.commentCount = commentCount;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getLastIndexId() {
return lastIndexId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setLastIndexId(Long lastIndexId) {
this.lastIndexId = lastIndexId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getLastIndexName() {
return lastIndexName;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setLastIndexName(String lastIndexName) {
this.lastIndexName = lastIndexName == null ? null : lastIndexName.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Date getLastIndexUpdateTime() {
return lastIndexUpdateTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setLastIndexUpdateTime(Date lastIndexUpdateTime) {
this.lastIndexUpdateTime = lastIndexUpdateTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Byte getIsVip() {
return isVip;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setIsVip(Byte isVip) {
this.isVip = isVip;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Byte getStatus() {
return status;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setStatus(Byte status) {
this.status = status;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Date getUpdateTime() {
return updateTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Date getCreateTime() {
return createTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Integer getCrawlSourceId() {
return crawlSourceId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCrawlSourceId(Integer crawlSourceId) {
this.crawlSourceId = crawlSourceId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getCrawlBookId() {
return crawlBookId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCrawlBookId(String crawlBookId) {
this.crawlBookId = crawlBookId == null ? null : crawlBookId.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Date getCrawlLastTime() {
return crawlLastTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCrawlLastTime(Date crawlLastTime) {
this.crawlLastTime = crawlLastTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Byte getCrawlIsStop() {
return crawlIsStop;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCrawlIsStop(Byte crawlIsStop) {
this.crawlIsStop = crawlIsStop;
}
}

View File

@ -0,0 +1,116 @@
package com.java2nb.novel.book.entity;
import io.swagger.annotations.ApiModelProperty;
import javax.annotation.Generated;
import java.util.Date;
public class BookCategory {
@ApiModelProperty(value = "主键")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Integer id;
@ApiModelProperty(value = "作品方向0男频1女频'")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Byte workDirection;
@ApiModelProperty(value = "分类名")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String name;
@ApiModelProperty(value = "排序")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Byte sort;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long createUserId;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Date createTime;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long updateUserId;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Date updateTime;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Integer getId() {
return id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setId(Integer id) {
this.id = id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Byte getWorkDirection() {
return workDirection;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setWorkDirection(Byte workDirection) {
this.workDirection = workDirection;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getName() {
return name;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Byte getSort() {
return sort;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setSort(Byte sort) {
this.sort = sort;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getCreateUserId() {
return createUserId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCreateUserId(Long createUserId) {
this.createUserId = createUserId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Date getCreateTime() {
return createTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getUpdateUserId() {
return updateUserId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setUpdateUserId(Long updateUserId) {
this.updateUserId = updateUserId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Date getUpdateTime() {
return updateTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}

View File

@ -0,0 +1,106 @@
package com.java2nb.novel.book.entity;
import io.swagger.annotations.ApiModelProperty;
import javax.annotation.Generated;
import java.util.Date;
public class BookComment {
@ApiModelProperty(value = "主键")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long id;
@ApiModelProperty(value = "小说ID")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long bookId;
@ApiModelProperty(value = "评价内容")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String commentContent;
@ApiModelProperty(value = "回复数量")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Integer replyCount;
@ApiModelProperty(value = "审核状态0待审核1审核通过2审核不通过")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Byte auditStatus;
@ApiModelProperty(value = "评价时间")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Date createTime;
@ApiModelProperty(value = "评价人")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long createUserId;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getId() {
return id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setId(Long id) {
this.id = id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getBookId() {
return bookId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setBookId(Long bookId) {
this.bookId = bookId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getCommentContent() {
return commentContent;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCommentContent(String commentContent) {
this.commentContent = commentContent == null ? null : commentContent.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Integer getReplyCount() {
return replyCount;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setReplyCount(Integer replyCount) {
this.replyCount = replyCount;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Byte getAuditStatus() {
return auditStatus;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setAuditStatus(Byte auditStatus) {
this.auditStatus = auditStatus;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Date getCreateTime() {
return createTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getCreateUserId() {
return createUserId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCreateUserId(Long createUserId) {
this.createUserId = createUserId;
}
}

View File

@ -0,0 +1,92 @@
package com.java2nb.novel.book.entity;
import io.swagger.annotations.ApiModelProperty;
import javax.annotation.Generated;
import java.util.Date;
public class BookCommentReply {
@ApiModelProperty(value = "主键")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long id;
@ApiModelProperty(value = "评论ID")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long commentId;
@ApiModelProperty(value = "回复内容")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String replyContent;
@ApiModelProperty(value = "审核状态0待审核1审核通过2审核不通过")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Byte auditStatus;
@ApiModelProperty(value = "回复用户ID")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Date createTime;
@ApiModelProperty(value = "回复时间")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long createUserId;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getId() {
return id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setId(Long id) {
this.id = id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getCommentId() {
return commentId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCommentId(Long commentId) {
this.commentId = commentId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getReplyContent() {
return replyContent;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setReplyContent(String replyContent) {
this.replyContent = replyContent == null ? null : replyContent.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Byte getAuditStatus() {
return auditStatus;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setAuditStatus(Byte auditStatus) {
this.auditStatus = auditStatus;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Date getCreateTime() {
return createTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getCreateUserId() {
return createUserId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCreateUserId(Long createUserId) {
this.createUserId = createUserId;
}
}

View File

@ -0,0 +1,49 @@
package com.java2nb.novel.book.entity;
import io.swagger.annotations.ApiModelProperty;
import javax.annotation.Generated;
public class BookContent {
@ApiModelProperty(value = "主键")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long id;
@ApiModelProperty(value = "目录ID")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long indexId;
@ApiModelProperty(value = "小说章节内容")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String content;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getId() {
return id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setId(Long id) {
this.id = id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getIndexId() {
return indexId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setIndexId(Long indexId) {
this.indexId = indexId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getContent() {
return content;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
}

View File

@ -0,0 +1,118 @@
package com.java2nb.novel.book.entity;
import io.swagger.annotations.ApiModelProperty;
import javax.annotation.Generated;
import java.util.Date;
public class BookIndex {
@ApiModelProperty(value = "主键")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long id;
@ApiModelProperty(value = "小说ID")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Long bookId;
@ApiModelProperty(value = "目录号")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Integer indexNum;
@ApiModelProperty(value = "目录名")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private String indexName;
@ApiModelProperty(value = "字数")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Integer wordCount;
@ApiModelProperty(value = "是否收费1收费0免费")
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Byte isVip;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Date createTime;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
private Date updateTime;
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getId() {
return id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setId(Long id) {
this.id = id;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Long getBookId() {
return bookId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setBookId(Long bookId) {
this.bookId = bookId;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Integer getIndexNum() {
return indexNum;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setIndexNum(Integer indexNum) {
this.indexNum = indexNum;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public String getIndexName() {
return indexName;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setIndexName(String indexName) {
this.indexName = indexName == null ? null : indexName.trim();
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Integer getWordCount() {
return wordCount;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setWordCount(Integer wordCount) {
this.wordCount = wordCount;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Byte getIsVip() {
return isVip;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setIsVip(Byte isVip) {
this.isVip = isVip;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Date getCreateTime() {
return createTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public Date getUpdateTime() {
return updateTime;
}
@Generated("org.mybatis.generator.api.MyBatisGenerator")
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
}