package com.xhpc.evcs.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Transient;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author yuyang
 * @Date 2025-08-04 15:44
 */
@Data
public class PlaceHolder {
    @Transient
    @JsonProperty("FreeTime")
    public Integer freeTime;
    @Transient
    @JsonProperty("MaxFee")
    public BigDecimal maxFee;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Transient
    @JsonProperty("EffectStartTime")
    public Date effectStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Transient
    @JsonProperty("EffectEndTime")
    public Date effectEndTime;
    @Transient
    @JsonProperty("PlaceHolderPrices")
    public List<PlaceHolderPrice> placeHolderPrices;

}
