BookInfo.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. package com.sf.po;
  2. import com.baomidou.mybatisplus.annotation.IdType;
  3. import com.baomidou.mybatisplus.annotation.TableId;
  4. import com.baomidou.mybatisplus.annotation.TableName;
  5. import lombok.AllArgsConstructor;
  6. import lombok.Builder;
  7. import lombok.Data;
  8. import lombok.NoArgsConstructor;
  9. import java.io.Serializable;
  10. import java.time.LocalDateTime;
  11. /**
  12. * <p>
  13. * 小说信息
  14. * </p>
  15. *
  16. * @author Qing
  17. * @since 2024-01-29
  18. */
  19. @TableName("book_info")
  20. @Builder
  21. @NoArgsConstructor
  22. @AllArgsConstructor
  23. @Data
  24. public class BookInfo implements Serializable {
  25. private static final long serialVersionUID = 1L;
  26. /**
  27. * 主键
  28. */
  29. @TableId(value = "id", type = IdType.AUTO)
  30. private Long id;
  31. /**
  32. * 作品方向;0-男频 1-女频
  33. */
  34. private Byte workDirection;
  35. /**
  36. * 类别ID
  37. */
  38. private Long categoryId;
  39. /**
  40. * 类别名
  41. */
  42. private String categoryName;
  43. /**
  44. * 小说封面地址
  45. */
  46. private String picUrl;
  47. /**
  48. * 小说名
  49. */
  50. private String bookName;
  51. /**
  52. * 作家id
  53. */
  54. private Long authorId;
  55. /**
  56. * 作家名
  57. */
  58. private String authorName;
  59. /**
  60. * 书籍描述
  61. */
  62. private String bookDesc;
  63. /**
  64. * 评分;总分:10 ,真实评分 = score/10
  65. */
  66. private Byte score;
  67. /**
  68. * 书籍状态;0-连载中 1-已完结
  69. */
  70. private Byte bookStatus;
  71. /**
  72. * 点击量
  73. */
  74. private Long visitCount;
  75. /**
  76. * 总字数
  77. */
  78. private Integer wordCount;
  79. /**
  80. * 评论数
  81. */
  82. private Integer commentCount;
  83. /**
  84. * 最新章节ID
  85. */
  86. private Long lastChapterId;
  87. /**
  88. * 最新章节名
  89. */
  90. private String lastChapterName;
  91. /**
  92. * 最新章节更新时间
  93. */
  94. private LocalDateTime lastChapterUpdateTime;
  95. /**
  96. * 是否收费;1-收费 0-免费
  97. */
  98. private Byte isVip;
  99. /**
  100. * 创建时间
  101. */
  102. private LocalDateTime createTime;
  103. /**
  104. * 更新时间
  105. */
  106. private LocalDateTime updateTime;
  107. }