# UpdateOooRoomDTO.java

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

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

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

    /**
     * DTO: Update OOO Room
     *
     * @author yyt
     * 2023/8/5
     */
    @Data
    public class UpdateOooRoomDTO {

        /**
         * 房间号，多个中间逗号隔开
         */
        @NotBlank(message = "the roomNumbers must not be blank")
        @Length(max = 2000, message = "the roomNumbers max length is 2000")
        private String roomNumbers;

        /**
         * 房间类型
         */
        @NotNull(message = "the roomType must not be null")
        private Integer roomType;

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

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

        /**
         * 备注
         */
        @NotNull(message = "the remarks must not be null")
        @Length(max = 2000, message = "the remarks max length is 2000")
        private String remarks;

        /**
         * 是否完结
         */
        @NotNull(message = "the closedNow must not be null")
        private Boolean closedNow;

    }