package com.cpop.mall.business.bo;

import com.cpop.core.annontation.StringArrayConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author DB
 * @createTime 2023/10/23 16:29
 * @description
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "商城商品规格详情对象")
public class ProductRecordBo implements Serializable {

    /**
     * 主键
     */
    @ApiModelProperty("主键")
    private String id;

    /**
     * 记录集合
     */
    @StringArrayConvert
    @ApiModelProperty("记录集合")
    private String recordNames;

    /**
     * 数量
     */
    @ApiModelProperty("数量")
    private Integer recordNum;

    /**关联
     * 记录消耗金额
     */
    @ApiModelProperty("记录消耗金额")
    private BigDecimal recordPrice;

    /**
     * 记录消耗积分
     */
    @ApiModelProperty("记录消耗积分")
    private Integer recordPoints;

    /**
     * 乐观锁字段
     */
    @ApiModelProperty("乐观锁字段")
    private Integer version;
}
