package com.ylx.giftCard.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
@ApiModel("购物卡管理分页VO")
public class GiftCardManagePageVO implements Serializable {
    private static final long serialVersionUID = -6990232175036599711L;

    @ApiModelProperty("购物卡ID")
    private Long id;

    @ApiModelProperty("商户ID")
    private String merchantId;

    @ApiModelProperty("购物卡名称")
    private String name;

    @ApiModelProperty("购物卡金额")
    private BigDecimal amount;

    @ApiModelProperty("缩略图URL")
    private String imageUrl;

    @ApiModelProperty("商户提成比例")
    private BigDecimal commissionRate;

    @ApiModelProperty("库存")
    private Integer stock;

    @ApiModelProperty("销量")
    private Integer sales;

    @ApiModelProperty("是否上架：1=上架，0=下架")
    private Integer isPublished;

    @ApiModelProperty("发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("有效期开始日期")
    private LocalDate validStartDate;

    @ApiModelProperty("有效期结束日期")
    private LocalDate validEndDate;
}
