package com.ylx.giftCard.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

@ApiModel("购物卡详情VO")
@Data
public class GiftCardDetailVO {

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

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

    @ApiModelProperty("价格（单位：元，保留两位小数）")
    private BigDecimal amount; // 建议用 BigDecimal 避免浮点误差

    @ApiModelProperty("适用范围描述")
    private String scopeDesc = "全平台可用";

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

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

    @ApiModelProperty("服务商户描述")
    private String merchantDesc = "全平台商户可用";

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

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

    @ApiModelProperty("封面图URL")
    private String imageUrl;
}
