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

27 lines
945 B
Java

package com.guwan.backend.pojo.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 name; // 书名
private String author; // 作者
private String publisher; // 出版社
private String description; // 描述
private String bookUrl; // 图书内容url
private String coverUrl; // 封面图片URL
private String category; // 分类
private String tags; // 标签(逗号分隔)
private String language; // 语言
private LocalDateTime publishDate; // 出版日期
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createdTime;
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updatedTime;
}