feat: 拆分记录上下文与内容归属并把报告改为结构化
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user