feat(同步管理-任务管理): 支持终止执行中的任务

This commit is contained in:
jianneng-fit2cloud 2024-02-27 12:26:45 +08:00
parent 0b3f049c87
commit 7f367f79a7
2 changed files with 7 additions and 0 deletions

View File

@ -18,3 +18,7 @@ export const getTaskLogDetailApi = (logId: string, fromLineNum: number) => {
export const clear = (clearData: {}) => {
return request.post({ url: `/sync/task/log/clear`, data: clearData })
}
export const terminationTaskApi = (logId: string) => {
return request.post({ url: `/sync/task/log/terminationTask/${logId}`, data: {} })
}

View File

@ -36,4 +36,7 @@ public interface TaskLogApi {
@PostMapping("/clear")
void clearJobLog(@RequestBody TaskLogVO taskLogVO);
@PostMapping("terminationTask/{logId}")
void terminationTask(@PathVariable("logId") String logId);
}