| | |
| | | @PostMapping("/status") |
| | | fun getTaskStatus( |
| | | @RequestBody condition: BgTaskConditionVo |
| | | ) = resPack { bgTaskService.getTaskStatus(condition) } |
| | | ) = bgTaskService.getTaskStatus(condition) |
| | | |
| | | @ApiOperation(value = "运行一个任务") |
| | | @PutMapping("/start") |
| | | fun startTask(@RequestBody condition: BgTaskConditionVo) = resPack { bgTaskService.startTask(condition) } |
| | | fun startTask(@RequestBody condition: BgTaskConditionVo) = bgTaskService.startTask(condition) |
| | | |
| | | @ApiOperation(value = "强制关闭任务") |
| | | @PutMapping("/shutDown") |
| | | fun shutDownTask(@RequestBody condition: BgTaskConditionVo) = resPack { bgTaskService.shutDownTask(condition) } |
| | | fun shutDownTask(@RequestBody condition: BgTaskConditionVo) = bgTaskService.shutDownTask(condition) |
| | | |
| | | @ApiOperation(value = "移除一个任务") |
| | | @PutMapping("/remove") |
| | | fun removeTask(@RequestBody condition: BgTaskConditionVo) = resPack { bgTaskService.removeTask(condition) } |
| | | fun removeTask(@RequestBody condition: BgTaskConditionVo) = bgTaskService.removeTask(condition) |
| | | |
| | | @ApiOperation(value = "新建并运行一个测试任务") |
| | | @PutMapping("/newTask/test/start") |
| | | fun startNewTestTask(@RequestParam taskId: String) = resPack { bgTaskService.startNewTestTask(taskId) } |
| | | fun startNewTestTask(@RequestParam taskId: String) = bgTaskService.startNewTestTask(taskId) |
| | | |
| | | @ApiOperation(value = "新建一个测试任务") |
| | | @PutMapping("/newTask/test") |
| | | fun newTestTask(@ApiParam(value = "后台任务id") @RequestParam taskId: String) = |
| | | resPack { bgTaskService.newTestTask(taskId) } |
| | | bgTaskService.newTestTask(taskId) |
| | | } |