HomeBook.java 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 java.io.Serializable;
  6. import java.time.LocalDateTime;
  7. /**
  8. * <p>
  9. * 小说推荐
  10. * </p>
  11. *
  12. * @author baomidou
  13. * @since 2024-05-25
  14. */
  15. @TableName("home_book")
  16. public class HomeBook implements Serializable {
  17. private static final long serialVersionUID = 1L;
  18. @TableId(value = "id", type = IdType.AUTO)
  19. private Long id;
  20. /**
  21. * 推荐类型;0-轮播图 1-顶部栏 2-本周强推 3-热门推荐 4-精品推荐
  22. */
  23. private Byte type;
  24. /**
  25. * 推荐排序
  26. */
  27. private Byte sort;
  28. /**
  29. * 推荐小说ID
  30. */
  31. private Long bookId;
  32. /**
  33. * 创建时间
  34. */
  35. private LocalDateTime createTime;
  36. /**
  37. * 更新时间
  38. */
  39. private LocalDateTime updateTime;
  40. public Long getId() {
  41. return id;
  42. }
  43. public void setId(Long id) {
  44. this.id = id;
  45. }
  46. public Byte getType() {
  47. return type;
  48. }
  49. public void setType(Byte type) {
  50. this.type = type;
  51. }
  52. public Byte getSort() {
  53. return sort;
  54. }
  55. public void setSort(Byte sort) {
  56. this.sort = sort;
  57. }
  58. public Long getBookId() {
  59. return bookId;
  60. }
  61. public void setBookId(Long bookId) {
  62. this.bookId = bookId;
  63. }
  64. public LocalDateTime getCreateTime() {
  65. return createTime;
  66. }
  67. public void setCreateTime(LocalDateTime createTime) {
  68. this.createTime = createTime;
  69. }
  70. public LocalDateTime getUpdateTime() {
  71. return updateTime;
  72. }
  73. public void setUpdateTime(LocalDateTime updateTime) {
  74. this.updateTime = updateTime;
  75. }
  76. @Override
  77. public String toString() {
  78. return "HomeBook{" +
  79. "id = " + id +
  80. ", type = " + type +
  81. ", sort = " + sort +
  82. ", bookId = " + bookId +
  83. ", createTime = " + createTime +
  84. ", updateTime = " + updateTime +
  85. "}";
  86. }
  87. }