From b4ee04b14d289262fc303967412a56202b6e002f Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 22 Sep 2021 16:41:04 +0800 Subject: [PATCH] Merge branch 'master' of http://120.27.238.55:7000/r/xc-mall --- src/main/java/cc/mrbird/febs/mall/dto/AddOrderDto.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/main/java/cc/mrbird/febs/mall/dto/AddOrderDto.java b/src/main/java/cc/mrbird/febs/mall/dto/AddOrderDto.java index 2d78d52..4bf68c5 100644 --- a/src/main/java/cc/mrbird/febs/mall/dto/AddOrderDto.java +++ b/src/main/java/cc/mrbird/febs/mall/dto/AddOrderDto.java @@ -4,6 +4,9 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import javax.validation.constraints.NotNull; +import java.util.List; + /** * @author wzy * @date 2021-09-18 @@ -12,9 +15,17 @@ @ApiModel(value = "AddOrderDto", description = "新增订单接口参数接收类") public class AddOrderDto { - @ApiModelProperty(value = "skuID", example = "1") - private Long skuId; + @NotNull(message = "参数不能为空") + @ApiModelProperty(value = "地址ID", example = "1") + private Long addressId; - @ApiModelProperty(value = "数量", example = "2") - private Integer cnt; + @ApiModelProperty(value = "订单提交类型", example = "1从购物车提交, 2从商品直接提交") + private Integer type; + + @ApiModelProperty(value = "备注") + private String remark; + + @ApiModelProperty(value = "商品明细") + private List<AddOrderItemDto> items; + } -- Gitblit v1.9.1