New file |
| | |
| | | package com.oying.modules.sh.domain.request; |
| | | |
| | | import com.oying.utils.enums.PayTypeEnum; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Getter; |
| | | import lombok.Setter; |
| | | |
| | | import javax.validation.constraints.NotBlank; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author xin |
| | | * @description |
| | | * @date 2025/7/1 23:58 |
| | | */ |
| | | @Getter |
| | | @Setter |
| | | public class SubmitOrder { |
| | | |
| | | @NotNull(message = "地址不能为空") |
| | | @ApiModelProperty(value = "地址ID") |
| | | private Long addressId; |
| | | @NotBlank(message = "送达时间不能为空") |
| | | @ApiModelProperty(value = "送达时间") |
| | | private String dateTime; |
| | | @NotNull(message = "门店不能为空") |
| | | @ApiModelProperty(value = "门店ID") |
| | | private Long storeId; |
| | | @NotNull(message = "商品不能为空") |
| | | @ApiModelProperty(value = "商品&数量") |
| | | private List<ProductOrder> products; |
| | | @ApiModelProperty(value = "备注") |
| | | private String remark; |
| | | @NotNull(message = "支付类型不能为空") |
| | | @ApiModelProperty(value = "支付类型") |
| | | private PayTypeEnum payType; |
| | | |
| | | } |