feat(novel-crawl): 增加单本采集任务进度显示功能

This commit is contained in:
xiongxiaoyang
2025-07-11 22:09:28 +08:00
parent 4693c7ffae
commit 8c9013ad05
11 changed files with 196 additions and 98 deletions

View File

@@ -153,6 +153,14 @@ public class CrawlController {
return RestResult.ok();
}
/**
* 采集任务进度查询
* */
@GetMapping("getTaskProgress/{id}")
public RestResult<Integer> getTaskProgress(@PathVariable("id") Long id){
return RestResult.ok(crawlService.getTaskProgress(id));
}