package com.beagle.base.bean.vo;

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

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class HistorianFloatIntervalValuesParam {
    @NotNull(message = "id不能为空")
    private Integer id;
    @NotNull(message = "请求次数不能为空")
    private Integer count;
    @NotNull(message = "请求频率不能为空")
    private Long interval;
    @NotNull(message = "请求时间不能为空")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date dateTime;
}
