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; /** *

* 小说推荐 *

* * @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 + "}"; } }