package com.cpop.mall.business.bo;

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

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

/**
 * @author DB
 * @createTime 2023/11/06 14:12
 * @description
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "商城购物车新增对象")
public class ShoppingCartBo implements Serializable {

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

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

    /**
     * 金额
     */
    @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;

}
