123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- package com.sf.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.time.LocalDateTime;
- /**
- * <p>
- * 小说推荐
- * </p>
- *
- * @author baomidou
- * @since 2024-05-25
- */
- @TableName("home_book")
- public class HomeBook implements Serializable {
- private static final long serialVersionUID = 1L;
- @TableId(value = "id", type = IdType.AUTO)
- private Long id;
- /**
- * 推荐类型;0-轮播图 1-顶部栏 2-本周强推 3-热门推荐 4-精品推荐
- */
- private Byte type;
- /**
- * 推荐排序
- */
- private Byte sort;
- /**
- * 推荐小说ID
- */
- private Long bookId;
- /**
- * 创建时间
- */
- private LocalDateTime createTime;
- /**
- * 更新时间
- */
- private LocalDateTime updateTime;
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public Byte getType() {
- return type;
- }
- public void setType(Byte type) {
- this.type = type;
- }
- public Byte getSort() {
- return sort;
- }
- public void setSort(Byte sort) {
- this.sort = sort;
- }
- public Long getBookId() {
- return bookId;
- }
- public void setBookId(Long bookId) {
- this.bookId = bookId;
- }
- public LocalDateTime getCreateTime() {
- return createTime;
- }
- public void setCreateTime(LocalDateTime createTime) {
- this.createTime = createTime;
- }
- public LocalDateTime getUpdateTime() {
- return updateTime;
- }
- public void setUpdateTime(LocalDateTime updateTime) {
- this.updateTime = updateTime;
- }
- @Override
- public String toString() {
- return "HomeBook{" +
- "id = " + id +
- ", type = " + type +
- ", sort = " + sort +
- ", bookId = " + bookId +
- ", createTime = " + createTime +
- ", updateTime = " + updateTime +
- "}";
- }
- }
|