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)); - } - // ============ 标准思维导图与回忆对比 ============ /**