From 5794bddc6ccf4688776f618e9d2dac52ec225d19 Mon Sep 17 00:00:00 2001 From: developer Date: Thu, 9 Jul 2026 00:12:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=20ReviewController=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=AF=BC=E5=9B=BE=E4=B8=8A=E4=BC=A0=E5=92=8C?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ReviewController.java | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/src/main/java/com/guo/learningprogresstracker/controller/ReviewController.java b/src/main/java/com/guo/learningprogresstracker/controller/ReviewController.java index a88baaf..fd97df8 100644 --- a/src/main/java/com/guo/learningprogresstracker/controller/ReviewController.java +++ b/src/main/java/com/guo/learningprogresstracker/controller/ReviewController.java @@ -4,9 +4,7 @@ import com.guo.learningprogresstracker.dto.ReviewFeedItem; import com.guo.learningprogresstracker.dto.ReviewTaskStats; import com.guo.learningprogresstracker.dto.request.RecallCompareRequest; import com.guo.learningprogresstracker.dto.request.UpdateStandardMindMapRequest; -import com.guo.learningprogresstracker.dto.request.UpsertReviewMindMapRequest; import com.guo.learningprogresstracker.entity.CommonResult; -import com.guo.learningprogresstracker.entity.ReviewMindMapEntity; import com.guo.learningprogresstracker.entity.ReviewRecallRecordEntity; import com.guo.learningprogresstracker.entity.ReviewStandardMindMapEntity; import com.guo.learningprogresstracker.entity.StudyReportFragmentsEntity; @@ -17,12 +15,9 @@ import com.guo.learningprogresstracker.service.ReviewService; import com.guo.learningprogresstracker.service.StandardMindMapService; import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; -import org.springframework.http.MediaType; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; -import org.springframework.web.multipart.MultipartFile; -import java.io.IOException; import java.util.List; import java.util.Map; @@ -89,34 +84,6 @@ public class ReviewController { return CommonResult.success(reviewService.getFragmentDetail(id)); } - /** - * 获取指定任务的思维导图 - */ - @GetMapping("/mind-map/{taskNum}") - public CommonResult getMindMap(@PathVariable String taskNum) throws NotFindEntitiesException { - return CommonResult.success(reviewService.getMindMap(taskNum)); - } - - /** - * 创建或更新指定任务的思维导图 - */ - @PutMapping("/mind-map/{taskNum}") - public CommonResult upsertMindMap( - @PathVariable String taskNum, - @Valid @RequestBody UpsertReviewMindMapRequest request) throws NotFindEntitiesException { - return CommonResult.success(reviewService.upsertMindMap(taskNum, request)); - } - - /** - * 上传并解析指定任务的思维导图文件 - */ - @PostMapping(value = "/mind-map/{taskNum}/upload", consumes = MediaType.MULTIPART_FORM_DATA_VALUE) - public CommonResult uploadMindMap( - @PathVariable String taskNum, - @RequestParam("file") MultipartFile file) throws NotFindEntitiesException, IOException { - return CommonResult.success(reviewService.uploadMindMap(taskNum, file)); - } - // ============ 标准思维导图与回忆对比 ============ /**