package com.ylx.giftCard.domain.vo;

import com.ylx.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import lombok.Data;

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

@Data
@ApiModel("购物卡管理导出VO")
public class GiftCardManageExportVO implements Serializable {
    private static final long serialVersionUID = -1629841029985374035L;

    @Excel(name = "购物卡ID", sort = 1)
    private Long id;

    @Excel(name = "购物卡名称", sort = 2)
    private String name;

    @Excel(name = "金额", sort = 3)
    private BigDecimal amount;

    @Excel(name = "缩略图", sort = 4)
    private String imageUrl;

    @Excel(name = "库存", sort = 5)
    private Integer stock;

    @Excel(name = "销量", sort = 6)
    private Integer sales;

    @Excel(name = "是否上架", sort = 7, readConverterExp = "0=下架,1=上架")
    private Integer isPublished;

    @Excel(name = "发布时间", sort = 8, width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Excel(name = "商户提成比例", sort = 9, suffix = "%")
    private BigDecimal commissionRate;
}
