[ server ] [ scheduler ]- script scheduler accomplish - 1

This commit is contained in:
zeaslity
2023-01-18 17:57:09 +08:00
parent ac27f1c702
commit 07d7810087
7 changed files with 129 additions and 95 deletions

View File

@@ -11,6 +11,7 @@ import org.quartz.Trigger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -33,15 +34,15 @@ public class SchedulerController {
@ApiOperation(value = "新增一个定时脚本任务")
@PostMapping(value = "/script/create")
public R<List<String>> createScriptScheduler(
public R<HashMap<String, String>> createScriptScheduler(
@ApiParam(name = "scheduleScript") @RequestBody() ScriptSchedulerVO scriptSchedulerVO
) {
ALL_AGENT_TOPIC_NAME_SET.add("Chengdu-amd64-98-98066f");
List<String> resultList = octopusQuartzService.createScriptScheduledMission(scriptSchedulerVO);
HashMap<String, String> map = octopusQuartzService.createScriptScheduledMission(scriptSchedulerVO);
return R.ok(resultList);
return R.ok(map);
}