# HolidayQuery.java

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

    import lombok.Data;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.Pattern;

    /**
     * 假期查询query
     *
     * @author lichen
     * @date 2023/6/19
     */
    @Data
    public class HolidayQuery {

        /**
         * 起始日期
         */
        @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;

    }