# RoomTypeDTO.java

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

    import cloud.wconnect.commonlib.pojo.dto.jsonview.Views;
    import com.fasterxml.jackson.annotation.JsonView;
    import lombok.Data;
    import org.hibernate.validator.constraints.Length;

    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.Null;

    /**
     * 类型dto
     *
     * @author lichen
     * @date 2023/6/20
     */
    @Data
    public class RoomTypeDTO {

        /**
         * 类型id
         */
        @Null(message = "The id must be null")
        @JsonView({Views.ListView.class})
        private Integer id;

        /**
         * 类型名称
         */
        @NotBlank(message = "The title cannot be blank")
        @Length(max = 50, message = "The title is limited 50 characters")
        @JsonView({Views.ListView.class})
        private String title;

        /**
         * 排序字段
         */
        @Null(message = "The order must be null")
        @JsonView({Views.ListView.class})
        private Integer order;

        /**
         * 平台ID
         */
        @Null(message = "The platformId must be null")
        private Integer platformId;

        /**
         * 销售地区
         */
        @Null(message = "The pos must be null")
        private String pos;

    }