# AreaTypeConfigDTO.java

    package cloud.wconnect.workperformance.pojo.dto.monthlyreport.areatypeconfig;

    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Length;
    import org.hibernate.validator.constraints.Range;

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

    /**
     * 区域类型配置
     *
     * @author lichen
     * @date 2023/9/5
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public class AreaTypeConfigDTO {

        /**
         * 分类id
         */
        @NotNull(message = "The id cannot be null")
        private Integer id;

        /**
         * 区域id
         */
        @NotNull(message = "The areaId cannot be null")
        private Integer areaId;

        /**
         * 分类名称
         */
        @NotBlank(message = "The name cannot be blank")
        @Length(max = 255,message = "the name max length is 255")
        private String name;

        /**
         * 内容类型 1：百分比 2：金额
         */
        @Range(min = 1, max = 2, message = "The contentType must between in [1:percentage 2:money]")
        private Integer contentType;

        /**
         * 指标类型
         */
        @Range(min = 1, max = 6, message = "The type must between in [1:Occ% 2:ADR 3:PevPAR 4:Rooms Revenue 5:Food & Beverage 6:Others]")
        private Integer type;

    }