diff --git a/austin-web/src/main/java/com/java3y/austin/controller/MessageTemplateController.java b/austin-web/src/main/java/com/java3y/austin/controller/MessageTemplateController.java index 8d5ef98..5875871 100644 --- a/austin-web/src/main/java/com/java3y/austin/controller/MessageTemplateController.java +++ b/austin-web/src/main/java/com/java3y/austin/controller/MessageTemplateController.java @@ -18,6 +18,7 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import org.springframework.web.multipart.MultipartFile; import java.util.Arrays; import java.util.List; @@ -132,11 +133,22 @@ public class MessageTemplateController { return messageTemplateService.startCronTask(id); } /** - * 启动模板的定时任务 + * 暂停模板的定时任务 */ @PostMapping("stop/{id}") @ApiOperation("/暂停模板的定时任务") public BasicResultVO stop(@RequestBody @PathVariable("id") Long id) { return messageTemplateService.stopCronTask(id); } + + /** + * 上传人群文件 + */ + @PostMapping("upload") + @ApiOperation("/上传人群文件") + public BasicResultVO upload(@RequestParam("file") MultipartFile file) { + return BasicResultVO.success(); + } + + } diff --git a/austin-web/src/main/java/com/java3y/austin/controller/XxlJobController.java b/austin-web/src/main/java/com/java3y/austin/controller/XxlJobController.java deleted file mode 100644 index 97200d7..0000000 --- a/austin-web/src/main/java/com/java3y/austin/controller/XxlJobController.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.java3y.austin.controller; - - -import com.java3y.austin.service.CronTaskService; -import io.swagger.annotations.Api; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -@Api(tags = {"定时任务接口"}) -@RestController -public class XxlJobController { - - @Autowired - private CronTaskService cronTaskService; - - - @RequestMapping("/xxl/add/task") - public Integer addTask() { - - // return taskService.saveTask(); - return null; - } -}