# CompRoomCommentDTO.java

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

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

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

    /**
     * 免费房备注DTO
     *
     * @author lichen
     * @date 2024/6/19
     */
    @Data
    public class CompRoomCommentDTO {

        /**
         * 评论内容
         */
        @NotNull(message = "The content cannot be null")
        @Length(max = 500, message = "The content length max is 500")
        private String content;

        /**
         * 附件
         */
        @NotBlank(message = "The attachments cannot be blank")
        private String attachments;

    }