# CollectHolidayDTO.java

    package cloud.wconnect.rateshop.pojo.dto.rateshop.holiday;

    import lombok.Data;
    import org.hibernate.validator.constraints.Length;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;

    /**
     * 采集：节假日对象
     *
     * @author lichen
     * @date 2023/6/10
     */
    @Data
    public class CollectHolidayDTO {

        /**
         * 开始时间(yyyyMMdd)
         */
        @NotNull(message = "The beginDate cannot be null")
        private Integer beginDate;

        /**
         * 结束时间(yyyyMMdd)
         */
        @NotNull(message = "The endDate cannot be null")
        private Integer endDate;

        /**
         * 标题
         */
        @NotBlank(message = "The title cannot be blank")
        @Length(max = 255, message = "The title is limited 255 characters")
        private String title;

    }