| | |
| | | |
| | | @ApiOperation(value = "查询任务状态") |
| | | @GetMapping("/status") |
| | | public Mono<TaskStatusResponse> getTaskStatus(String taskId) { |
| | | public Mono<TaskStatusResponse> getTaskStatus(@RequestParam(value = "taskId" )String taskId) { |
| | | return collectionService.getError(taskId); |
| | | } |
| | | |
| | | @PostMapping("/cancel/{keywordId}") |
| | | @ApiOperation(value = "取消任务") |
| | | public Mono<ResponseResult<TaskCancelResponse>> cancelTask(@PathVariable Integer keywordId) { |
| | | public Mono<ResponseResult<TaskCancelResponse>> cancelTask(@PathVariable Integer keywordId) { |
| | | return collectionService.getResponseResult(keywordId); |
| | | } |
| | | |