package beilv.carinformation.domain;

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

import beilv.common.constant.PriceOptions;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import beilv.common.annotation.Excel;
import beilv.common.core.domain.BaseEntity;

/**
 * 卡种信息对象 car_information
 *
 * @author ruoyi
 * @date 2025-01-02
 */
@Setter
@Getter
public class CarInformation extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 类型
     */
    private String type;

    @Excel(name = "类型")
    private String typeLabel;

    /**
     * 可用次数
     */
    @Excel(name = "可用次数")
    private Integer totalNumber;

    /**
     * 原价格
     */
    @Excel(name = "原价格")
    private BigDecimal originalPrice;

    /**
     * 会员价格
     */
    @Excel(name = "会员价格")
    private BigDecimal memberPrice;

    /**
     * 单次积分
     */
    @Excel(name = "单次积分")
    private Integer point;

    /**
     * 有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    @Excel(name = "有效期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationDate;

    /**
     * 使用规则
     */
//    @Excel(name = "使用规则")
    private String notes;

    /**
     * 状态（上架；下架）
     */
    private String cardState;

    @Excel(name = "卡种状态")
    private String cardStateLabel;

    //图片
    private String file;

    private String userId;

}
