package cc.mrbird.febs.dapp.dto; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; import javax.validation.constraints.NotNull; @Data @ApiModel(value = "AddOrderDto", description = "新增订单接口参数接收类") public class AddOrderDto { @NotNull(message = "参数不能为空") @ApiModelProperty(value = "商品ID", example = "1") private Long goodsId; @NotNull(message = "参数不能为空") @ApiModelProperty(value = "数量", example = "1") private Integer goodsCnt; @NotNull(message = "参数不能为空") @ApiModelProperty(value = "地址ID", example = "1") private Long addressId; @ApiModelProperty(value = "配送方式 1:快递寄送2:到店自提") private Integer deliverType; }