| | |
| | | package com.dji.sample.wayline.model.param; |
| | | |
| | | import com.dji.sample.wayline.model.enums.WaylineTaskTypeEnum; |
| | | import com.dji.sample.wayline.model.enums.WaylineTemplateTypeEnum; |
| | | import lombok.Data; |
| | | import org.hibernate.validator.constraints.Range; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author sean |
| | |
| | | @Data |
| | | public class CreateJobParam { |
| | | |
| | | @NotBlank |
| | | private String name; |
| | | |
| | | @NotBlank |
| | | private String fileId; |
| | | |
| | | @NotBlank |
| | | private String dockSn; |
| | | |
| | | private String type; |
| | | @NotNull |
| | | private WaylineTemplateTypeEnum waylineType; |
| | | |
| | | private boolean immediate; |
| | | @NotNull |
| | | private WaylineTaskTypeEnum taskType; |
| | | |
| | | @Range(min = 20, max = 500) |
| | | @NotNull |
| | | private Integer rthAltitude; |
| | | |
| | | @NotNull |
| | | @Range(max = 2) |
| | | private Integer outOfControlAction; |
| | | |
| | | @Range(min = 50, max = 90) |
| | | private Integer minBatteryCapacity; |
| | | |
| | | private Integer minStorageCapacity; |
| | | |
| | | private List<Long> taskDays; |
| | | |
| | | private List<List<Long>> taskPeriods; |
| | | |
| | | private Integer repFreType; |
| | | |
| | | private Integer repFreVal; |
| | | |
| | | private Integer repRuleType; |
| | | |
| | | private List<Integer> repRuleVal; |
| | | |
| | | private List<List<Long>> executeStartTimeArr; |
| | | |
| | | private String jobId; |
| | | |
| | | private LocalDateTime beginTime; |
| | | } |