feat: 拆分记录上下文与内容归属并把报告改为结构化

This commit is contained in:
2026-10-09 19:12:04 +08:00
parent 9a86eadb52
commit c74f73ac3c
49 changed files with 1197 additions and 281 deletions
@@ -84,8 +84,15 @@ public class TaskController {
return CommonResult.success();
}
@GetMapping("/{taskId}/deletion-preview")
@Operation(summary = "删除任务前的影响范围:将删除什么、将保留什么(碎片进入待归类)")
public CommonResult<com.guo.learningprogresstracker.dto.TaskDeletionSummary> previewDeletion(
@PathVariable("taskId") String taskId) {
return CommonResult.success(tasksService.previewDeletion(taskId));
}
@DeleteMapping("/{taskId}")
@Operation(summary = "删除指定任务")
@Operation(summary = "删除指定任务(保留其知识碎片并进入待归类)")
public CommonResult<Void> deleteTask(@PathVariable("taskId") String taskId) throws ServerException {
tasksService.deleteTask(taskId);
return CommonResult.success();