| | |
| | | import com.dji.sample.wayline.model.param.*; |
| | | import com.dji.sample.wayline.service.IWaylineJobService; |
| | | import com.dji.sample.wayline.service.impl.WaylineJobServiceImpl; |
| | | import com.dji.sample.wayline.util.ErrorCodeUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | /** |
| | | * 断点任务 |
| | | * |
| | | * @return |
| | | */ |
| | | @PostMapping("/{workspace_id}/breakpoint-tasks") |
| | |
| | | |
| | | /** |
| | | * 子查询 |
| | | * |
| | | * @param workspaceId |
| | | * @return |
| | | */ |
| | |
| | | return ResponseResult.success(waylineJobEntity); |
| | | } |
| | | |
| | | @GetMapping("/code") |
| | | public ResponseResult errotCode(@RequestParam Integer code) { |
| | | return ResponseResult.success(ErrorCodeUtil.codeToReason(code)); |
| | | } |
| | | |
| | | /** |
| | | * 发送命令取消作业。 |