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 CouponTemplateVO {

    private Long id;

    private String couponName;

    private Integer couponType;

    private String couponTypeLabel;

    private String couponDesc;

    private BigDecimal discountValue;

    private BigDecimal minAmount;

    private BigDecimal maxDiscount;

    private Integer remainCount;

    private Integer receiveLimit;

    private Integer validType;

    private String validTypeLabel;

    @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 Integer validDays;

    private Boolean canReceive;

    private Integer receivedCount;
}
