yl-backend/src/main/java/com/guwan/backend/entity/Book.java

30 lines
955 B
Java

package com.guwan.backend.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;
@Data
@TableName("book")
public class Book {
@TableId(type = IdType.AUTO)
private Long id;
private String isbn; // ISBN编号
private String title; // 书名
private String author; // 作者
private String publisher; // 出版社
private String description; // 描述
private String coverUrl; // 封面图片URL
private String category; // 分类
private String tags; // 标签(逗号分隔)
private Integer totalPages; // 总页数
private String language; // 语言
private LocalDateTime publishDate; // 出版日期
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createdTime;
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updatedTime;
}