package com.xiaoniu.system.pointsgoods.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

/**
 * @Author haoxuyang
 * @Date 2024/10/29 18:27
 */
@Data
@Schema(description = "积分商品列表响应参数VO")
public class PointsGoodsListVO {

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "商品id")
    private Long goodsId;

    @Schema(description = "商品名称")
    private String goodsName;

    @Schema(description = "商品类型")
    private String goodsType;

    @Schema(description = "商品原价")
    private BigDecimal commodityPrice;

    @Schema(description = "积分价格")
    private Integer pointsPrice;

    @Schema(description = "兑换金额")
    private BigDecimal exchangeAmount;

    @Schema(description = "状态(1-已上架 2-已下架)")
    private String status;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建",hidden = true)
    private Date createTime;
}
