package com.ruoyi.controller.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author liwenlong
 */
@Data
public class CreateOrderReq {

    @NotNull(message = "商品id不能为空")
    @ApiModelProperty(required = true, value = "商品id")
    private Long goodsId;

    @NotNull(message = "规格id不能为空")
    @ApiModelProperty(required = true, value = "规格id")
    private Long specId;

    @NotNull(message = "数量不能为空")
    @ApiModelProperty(required = true, value = "数量")
    private Integer quantity;

    @ApiModelProperty("支付类型")
    private Integer payType;

    @ApiModelProperty("选择余额支付的时候密码校验")
    private String balancePayPwd;

    @ApiModelProperty("备注")
    private String remark;

    @NotNull(message = "用户地址id不能为空")
    @ApiModelProperty(required = true, value = "用户地址id")
    private Long addressId;

}
