package com.haha.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class CouponVO {

    private Long id;

    private String couponCode;

    private String couponName;

    private Integer couponType;

    private String couponTypeLabel;

    private String couponDesc;

    private BigDecimal discountValue;

    private BigDecimal minAmount;

    private BigDecimal maxDiscount;

    private Integer status;

    private String statusLabel;

    private String statusColor;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime validStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime validEndTime;

    private Boolean isExpired;

    private Boolean canUse;

    private Long templateId;

    private Integer validDays;
}
