package cn.reghao.tnb.search.esapp.log.model.dto;

import cn.reghao.tnb.search.esapp.model.DateVerify;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author reghao
 * @date 2026-01-06 14:16:18
 */
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class DateTimeQuery {
    @NotBlank
    //@Size(min = 19, max = 19, message = "日期时间格式 yyyy-mm-dd hh:mm:ss")
    @DateVerify(dateFormat = "yyyy-MM-dd HH:mm:ss")
    private String start;
    @NotBlank
    //@Size(min = 19, max = 19, message = "日期时间格式 yyyy-mm-dd hh:mm:ss")
    @DateVerify(dateFormat = "yyyy-MM-dd HH:mm:ss")
    private String end;
    private String url;
}
