package com.cpop.mall.business.bo;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author DB
 * @createTime 2023/11/06 11:21
 * @description
 */
@Data
@ApiModel(value = "商城订单下单详情请求对象")
public class OrderDetailBo implements Serializable {

    /**
     * 商品记录id
     */
    @NotBlank(message = "商品规格记录id不能为空")
    @ApiModelProperty(value = "商品规格记录id",required = true)
    private String productRecordId;

    /**
     * 金额
     */
    @NotNull(message = "金额不能为空")
    @ApiModelProperty(value = "金额",required = true)
    private BigDecimal amount;

    /**
     * 积分
     */
    @NotNull(message = "积分不能为空")
    @ApiModelProperty(value = "积分",required = true)
    private Integer point;

    /**
     * 下单数量
     */
    @NotNull(message = "下单数量不能为空")
    @ApiModelProperty(value = "下单数量",required = true)
    private Integer number;

    /**
     * 店铺(校区)id
     */
    @NotBlank(message = "店铺(校区)id不能为空")
    @ApiModelProperty(value = "店铺(校区)id",required = true)
    private String storeId;
}
