# PastReservationDayConfigDTO.java

    package cloud.wconnect.frontoffice.pojo.dto.pastreservation;

    import lombok.AllArgsConstructor;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Size;
    import java.util.List;

    /**
     * @author: yyt
     * 2024-10-02
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class PastReservationDayConfigDTO {

        /**
         * 间隔天数
         */
        @NotNull(message = "the intervalDay must not be null")
        @Range(min = 0, max = 10000, message = "the intervalDay must be between 0 and 10000")
        private Integer intervalDay;

        /**
         * 连续天数
         */
        @Valid
        @NotEmpty(message = "the consecutiveDays must not be empty")
        @Size(min = 3, max = 3, message = "the consecutiveDays size must be 3")
        private List<PastReservationConsecutiveDayDTO> consecutiveDays;

    }