package com.cpop.mall.business.vo;

import com.cpop.core.annontation.StringArrayConvert;
import com.mybatisflex.annotation.Id;
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 17:36
 * @description
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "商城商品记录返回对象")
public class ProductRecordVo implements Serializable {

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

    /**
     * 商品id
     */
    @ApiModelProperty("商品id")
    private String productId;

    /**
     * 规格集合
     */
    @StringArrayConvert
    @ApiModelProperty("规格集合")
    private String recordNames;

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

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

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

    /**
     * 标记
     */
    @ApiModelProperty("标记")
    private Integer version;
}
