feat: 新增复习任务统计接口
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.guo.learningprogresstracker.controller;
|
||||
|
||||
import com.guo.learningprogresstracker.dto.ReviewFeedItem;
|
||||
import com.guo.learningprogresstracker.dto.ReviewTaskStats;
|
||||
import com.guo.learningprogresstracker.entity.CommonResult;
|
||||
import com.guo.learningprogresstracker.entity.StudyReportFragmentsEntity;
|
||||
import com.guo.learningprogresstracker.entity.StudyReportsEntity;
|
||||
@@ -32,6 +33,22 @@ public class ReviewController {
|
||||
return CommonResult.success(reviewService.getReviewFeed(limit));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取任务维度的复习统计汇总
|
||||
*/
|
||||
@GetMapping("/tasks")
|
||||
public CommonResult<List<ReviewTaskStats>> getReviewTaskStats() {
|
||||
return CommonResult.success(reviewService.getReviewTaskStats());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定任务的复习统计汇总
|
||||
*/
|
||||
@GetMapping("/tasks/{taskNum}")
|
||||
public CommonResult<ReviewTaskStats> getReviewTaskStats(@PathVariable String taskNum) {
|
||||
return CommonResult.success(reviewService.getReviewTaskStats(taskNum));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定任务下的所有报告和残片
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user