package com.guwan.backend.service; import com.baomidou.mybatisplus.core.metadata.IPage; import com.guwan.backend.dto.ReadingStatistics; import com.guwan.backend.entity.ReadingProgress; public interface ReadingProgressService { // 创建或更新阅读进度 ReadingProgress updateProgress(ReadingProgress progress); // 获取用户的阅读进度 ReadingProgress getProgress(Long userId, Long bookId); // 获取用户的所有阅读进度 IPage getUserProgress(Long userId, Integer pageNum, Integer pageSize); // 获取用户特定状态的书籍 IPage getProgressByStatus(Long userId, String status, Integer pageNum, Integer pageSize); // 更新阅读时长 void updateReadingTime(Long userId, Long bookId, Integer minutes); // 获取用户的阅读统计 ReadingStatistics getReadingStatistics(Long userId); }