# AdjPmsConfigDTO.java

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

    import jakarta.validation.constraints.NotBlank;
    import lombok.*;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.constraints.NotNull;

    import java.io.Serializable;

    /**
     * Adjustment Requests的 pmsAccount 配置DTO
     */
    @Data
    public class AdjPmsConfigDTO implements Serializable {

        private static final long serialVersionUID = 1L;

        /**
         * 主键id
         */
        private Long id;

        /**
         * 用户id
         */
        @NotNull(message = "the userId cannot be null")
        private Integer userId;

        private String userName;

        /**
         * pms账号
         */
        @NotBlank(message = "the pmsAccount cannot be blank")
        @Length(max = 60, message = "the pmsAccount cannot be longer than 60 characters")
        private String pmsAccount;

        /**
         * 请求类型
         */
        @NotNull(message = "the requestType cannot be null")
        private Integer requestType;

        /**
         * 数据类型 1: 草稿 2: 作废
         */
        @NotNull(message = "the dataType cannot be null")
        @Range(min = 1, max = 2, message = "the dataType must be in [1:Draft 2:Cancel]")
        private Integer dataType;

    }