feat(review): 新增复习内容滚动展示与交互 API
- 新增 /review/feed 端点,合并报告和残片数据按时间倒序返回
- 新增 /review/report/{id} 和 /review/fragment/{id} 端点
- 支持复习内容在首页滚动展示及点击查看详情
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.guo.learningprogresstracker.mapper;
|
||||
|
||||
import com.guo.learningprogresstracker.dto.ReviewFeedItem;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 复习模块自定义查询 Mapper
|
||||
*/
|
||||
@Mapper
|
||||
public interface ReviewMapper {
|
||||
|
||||
/**
|
||||
* 获取最近的学习报告和残片,合并排序后返回
|
||||
*/
|
||||
List<ReviewFeedItem> selectReviewFeed(@Param("limit") int limit);
|
||||
}
|
||||
Reference in New Issue
Block a user