package com.qs.mp.user.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.baomidou.mybatisplus.annotation.TableField;
import com.qs.mp.common.enums.TicketTypeEnum;
import com.qs.mp.user.domain.UserPrizeStorage;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 用户实物奖品库出参类
 * @author Cup
 * @date 2022/5/24
 */
@ApiModel("用户实物奖品库出参类")
@Data
public class UserPrizeStorageVO extends UserPrizeStorage {

    @ApiModelProperty("商品类型:1实物,2卡密")
    private Integer goodsType;

    @ApiModelProperty("回收折扣")
    private BigDecimal discountRate;


    @ApiModelProperty("是否多sku: 0否,1是")
    private Integer isMoreSku;

    @ApiModelProperty("盲票形式（线上或线下）")
    @JSONField(serialzeFeatures = SerializerFeature.WriteEnumUsingToString)
    private TicketTypeEnum type;


    @ApiModelProperty("回收开关")
    private boolean recovery = false;

    @ApiModelProperty("商品成本")
    private Integer cost;
}
