mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 04:12:11 +08:00
fix(X-Pack): 同步管理,修复任务日志没有操作日志的问题
This commit is contained in:
@@ -11,6 +11,8 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import io.swagger.v3.oas.annotations.Hidden;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
import static io.dataease.constant.AuthResourceEnum.TASK;
|
||||
|
||||
/**
|
||||
@@ -44,4 +46,10 @@ public interface TaskLogApi {
|
||||
@PostMapping("terminationTask/{logId}")
|
||||
void terminationTask(@PathVariable("logId") String logId);
|
||||
|
||||
@GetMapping("/getLogResourceId")
|
||||
Long getLogResourceId(@PathVariable("params") Map<String, String> params);
|
||||
|
||||
@GetMapping("/query2Root")
|
||||
String query2Root(@PathVariable("params") Map<String, String> params);
|
||||
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ public enum LogOT {
|
||||
SYNC_TASK_DISENABLE(24, "OPERATE_TYPE_SYNC_TASK_DISENABLE"),
|
||||
SYNC_TASK_RUN_IMMEDIATELY(25, "OPERATE_TYPE_SYNC_TASK_RUN_IMMEDIATELY"),
|
||||
SYNC_TASK_RUN_TERMINATION(26, "OPERATE_TYPE_SYNC_TASK_RUN_TERMINATION"),
|
||||
SYNC_DATASOURCE_SYNC(27, "OPERATE_TYPE_SYNC_DATASOURCE_SYNC");
|
||||
CLEAR(27, "CLEAR");
|
||||
private Integer value;
|
||||
private String name;
|
||||
|
||||
|
||||
@@ -22,7 +22,8 @@ public enum LogST {
|
||||
DATA(15, "SOURCE_TYPE_DATA"),
|
||||
REPORT_TASK(20, "SOURCE_TYPE_REPORT_TASK"),
|
||||
SYNC_DATASOURCE(21, "SOURCE_TYPE_SYNC_DATASOURCE"),
|
||||
SYNC_TASK(22, "SOURCE_TYPE_SYNC_TASK");
|
||||
SYNC_TASK(22, "SOURCE_TYPE_SYNC_TASK"),
|
||||
SYNC_TASK_LOG(23, "SOURCE_TYPE_SYNC_TASK_LOG");
|
||||
private Integer value;
|
||||
|
||||
private String name;
|
||||
|
||||
Reference in New Issue
Block a user