# ImportBookingDTO.java

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

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

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO: Import Booking
     *
     * @author yyt
     * 2024/7/23
     */
    @Data
    @NoArgsConstructor
    public class ImportBookingDTO {

        /**
         * 开始日期时间戳
         */
        @NotNull(message = "the startDate must not be null")
        private Long startDate;

        /**
         * 结束日期时间戳
         */
        @NotNull(message = "the toDate must not be null")
        private Long toDate;

        /**
         * 导入类型（1：pms，2：other）
         */
        @NotNull(message = "the type must not be null")
        @Range(min = 1, max = 2, message = "the type must be in [1：pms，2：other]")
        private Integer type;

        public static final int TYPE_PMS = 1;

        public static final int TYPE_OTHER = 2;

    }