# HotelDTO.java

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

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

    import jakarta.validation.constraints.NotNull;

    /**
     * DTO: Hotel
     *
     * @author: yyt
     * 2024-04-09
     */
    @Data
    public class HotelDTO {

        /**
         * 酒店 id
         */
        @NotNull(message = "the hotelId must not be null")
        private Integer hotelId;

        /**
         * 酒店名称
         */
        private String hotelName;

        /**
         * 别名
         */
        @NotNull(message = "the aliasName must not be null")
        @Length(max = 255, message = "the aliasName max length is 255")
        private String aliasName;

        /**
         * 排序
         */
        @NotNull(message = "the sort mus not be null")
        @Range(min = 1, max = 10, message = "the sort must in [1~10]")
        private Integer sort;

    }