| | |
| | | private IWaylineJobService waylineJobService; |
| | | |
| | | /** |
| | | * Create a wayline task for the Dock. |
| | | * 创建航路任务。 |
| | | * @param request |
| | | * @param param |
| | | * @param workspaceId |
| | |
| | | return waylineJobService.publishFlightTask(param, customClaim); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * Paginate through all jobs in this workspace. |
| | | * 创建航路任务(重复定时和连续执行) |
| | | * @param request |
| | | * @param param |
| | | * @param workspaceId |
| | | * @return |
| | | * @throws SQLException |
| | | */ |
| | | @PostMapping("/{workspace_id}/flight-tasks-condition") |
| | | public ResponseResult createJobCondition(HttpServletRequest request, @Valid @RequestBody CreateJobParam param, |
| | | @PathVariable(name = "workspace_id") String workspaceId) throws SQLException { |
| | | CustomClaim customClaim = (CustomClaim)request.getAttribute(TOKEN_CLAIM); |
| | | customClaim.setWorkspaceId(workspaceId); |
| | | |
| | | return waylineJobService.publishFlightTaskCondition(param, customClaim); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询 |
| | | * @param page |
| | | * @param pageSize |
| | | * @param workspaceId |
| | |
| | | } |
| | | |
| | | /** |
| | | * Send the command to cancel the jobs. |
| | | * 发送命令取消作业。 |
| | | * @param jobIds |
| | | * @param workspaceId |
| | | * @return |
| | |
| | | } |
| | | |
| | | /** |
| | | * Set the media files for this job to upload immediately. |
| | | * 将此作业的媒体文件设置为立即上传。 |
| | | * @param workspaceId |
| | | * @param jobId |
| | | * @return |