BookInfo.java 1.9 KB

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