| | |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | import java.io.Serializable; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 预计时效配置保存请求 |
| | |
| | | @ApiModel("预计时效配置保存请求") |
| | | public class EstimatedDeliverySaveDTO implements Serializable { |
| | | |
| | | @ApiModelProperty(value = "规则主键(修改时必传)") |
| | | private Integer id; |
| | | |
| | | @ApiModelProperty(value = "城市主键", required = true, example = "1") |
| | | @NotNull(message = "城市主键不能为空") |
| | | private Integer cityId; |
| | | |
| | | @ApiModelProperty(value = "配送里程(公里)", required = true, example = "10") |
| | | @NotNull(message = "配送里程不能为空") |
| | | private String distance; |
| | | @ApiModelProperty(value = "时效配置列表(fieldA=1标速达,fieldA=2极速达)") |
| | | @NotNull(message = "时效配置列表不能为空") |
| | | private List<EstimatedDeliveryItem> items; |
| | | |
| | | @ApiModelProperty(value = "配送时长(小时)", required = true, example = "2") |
| | | @NotNull(message = "配送时长不能为空") |
| | | private String duration; |
| | | @Data |
| | | @ApiModel("预计时效配置项") |
| | | public static class EstimatedDeliveryItem implements Serializable { |
| | | |
| | | @ApiModelProperty(value = "类型:1=标速达;2=极速达", required = true, example = "1") |
| | | @NotNull(message = "类型不能为空") |
| | | private Integer fieldA; |
| | | |
| | | @ApiModelProperty(value = "起送里程(公里)", required = true, example = "10") |
| | | @NotNull(message = "起送里程不能为空") |
| | | private String startDistance; |
| | | |
| | | @ApiModelProperty(value = "起送时长", required = true, example = "2") |
| | | @NotNull(message = "起送时长不能为空") |
| | | private String startTime; |
| | | |
| | | @ApiModelProperty(value = "续送里程(公里)", required = true, example = "5") |
| | | @NotNull(message = "续送里程不能为空") |
| | | private String continueDistance; |
| | | |
| | | @ApiModelProperty(value = "续送时长", required = true, example = "1") |
| | | @NotNull(message = "续送时长不能为空") |
| | | private String continueTime; |
| | | } |
| | | } |