# DailyAlertMsgQuery.java

    package cloud.wconnect.rateshop.pojo.query.rateshop;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.Pattern;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    /**
     * Alert 查询条件
     *
     * @author lichen
     * @date 2024/5/15
     */
    @Data
    public class DailyAlertMsgQuery {

        /**
         * 起始日期
         */
        @NotBlank(message = "The fromDate cannot be blank")
        @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "The fromDate format is incorrect, right format is [yyyy-MM-dd]")
        private String fromDate;

        /**
         * 结束日期
         */
        @NotBlank(message = "The toDate cannot be blank")
        @Pattern(regexp = "^\\d{4}-\\d{2}-\\d{2}$", message = "The fromDate format is incorrect, right format is [yyyy-MM-dd")
        private String toDate;

    }