|
|
@@ -84,6 +84,13 @@ public class InspectionController { |
|
|
|
@PutMapping("/mission/{id}") |
|
|
|
@ApiOperation(value = "立即执行", notes = "立即执行") |
|
|
|
@ApiImplicitParam(name="id",value = "巡检的Id,飞行任务里面的id") |
|
|
|
public JsonResult executeTask(@PathVariable("id") String id) { |
|
|
|
return inspectionService.executeTask(id,null); |
|
|
|
} |
|
|
|
|
|
|
|
@PutMapping("/mission/url/{id}") |
|
|
|
@ApiOperation(value = "立即执行", notes = "立即执行") |
|
|
|
@ApiImplicitParam(name="id",value = "巡检的Id,飞行任务里面的id") |
|
|
|
public JsonResult executeTask(@PathVariable("id") String id,@RequestBody PushAndPullURLRequest pushAndPull) { |
|
|
|
return inspectionService.executeTask(id,pushAndPull); |
|
|
|
} |