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

26 lines
838 B
Java

package com.guwan.backend.pojo.entity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;
@Data
@TableName("reading_progress")
public class ReadingProgress {
@TableId(type = IdType.AUTO)
private Long id;
private Long userId; // 用户ID
private Long bookId; // 书籍ID
private String status; // 状态:WANT_TO_READ,READING,FINISHED
private Integer currentPage; // 当前页码
private Double percentage; // 阅读进度(0-100)
private Integer readingTime; // 阅读时长(分钟)
private LocalDateTime lastReadTime; // 最后阅读时间
@TableField(fill = FieldFill.INSERT)
private LocalDateTime createdTime;
@TableField(fill = FieldFill.INSERT_UPDATE)
private LocalDateTime updatedTime;
}