feat: 新增复习耗时统计与按任务汇总

This commit is contained in:
2026-10-09 11:12:37 +08:00
parent af13bd57b7
commit 3b33cd8396
14 changed files with 373 additions and 6 deletions
@@ -2,6 +2,7 @@ package com.guo.learningprogresstracker.controller;
import com.guo.learningprogresstracker.dto.ReviewFeedItem;
import com.guo.learningprogresstracker.dto.ReviewTaskStats;
import com.guo.learningprogresstracker.dto.ReviewTiming;
import com.guo.learningprogresstracker.dto.request.RecallCompareRequest;
import com.guo.learningprogresstracker.dto.request.UpdateStandardMindMapRequest;
import com.guo.learningprogresstracker.entity.CommonResult;
@@ -126,7 +127,10 @@ public class ReviewController {
public CommonResult<ReviewStandardMindMapEntity> recallCompare(
@PathVariable String taskNum,
@Valid @RequestBody RecallCompareRequest request) throws NotFindEntitiesException, OperationFailedException {
return CommonResult.success(standardMindMapService.recallCompare(taskNum, request.getRecallOutline(), request.getFocusPath()));
return CommonResult.success(standardMindMapService.recallCompare(
taskNum, request.getRecallOutline(), request.getFocusPath(),
new ReviewTiming(request.getReviewStartedAt(), request.getReviewLastInteractionAt(),
request.getReviewDurationSeconds())));
}
/**