| | |
| | | import javax.validation.constraints.NotEmpty; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | @NotNull(message = "城市不能为空") |
| | | private Integer cityId; |
| | | |
| | | @ApiModelProperty(value = "预计存放天数", required = true) |
| | | @NotNull(message = "预计存放天数不能为空") |
| | | private Integer estimatedDepositDays; |
| | | @ApiModelProperty(value = "预计存放开始时间", required = true) |
| | | @NotNull(message = "预计存放开始时间不能为空") |
| | | private Date depositStartTime; |
| | | |
| | | @ApiModelProperty(value = "预计存放结束时间", required = true) |
| | | @NotNull(message = "预计存放结束时间不能为空") |
| | | private Date depositEndTime; |
| | | |
| | | @ApiModelProperty(value = "物品列表", required = true) |
| | | @NotEmpty(message = "物品列表不能为空") |
| | | @Valid |
| | | private List<OrderItemDTO> items; |
| | | |
| | | @ApiModelProperty(value = "是否保价") |
| | | private Boolean insured; |
| | | |
| | | @ApiModelProperty(value = "保价金额(元)") |
| | | private BigDecimal declaredAmount; |