# HotelKpiV2SettingMetricsDTO.java

    package cloud.wconnect.workperformance.pojo.dto.hotelkpi.settingv2;

    import cloud.wconnect.workperformance.pojo.dto.hotelkpi.kpiv2.HotelKpiV2ComparisonRuleDTO;
    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotBlank;
    import jakarta.validation.constraints.NotNull;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Length;

    /**
     * DTO: Hotel KPI V2 Setting Metrics
     *
     * @author zc
     * @date 2025/08/21
     */
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public class HotelKpiV2SettingMetricsDTO {

        /**
         * 指标 id
         */
        private Integer metricsId;

        /**
         * 指标类型
         */
        @NotNull(message = "The metricsType cannot be null")
        private Integer metricsType;

        /**
         * 指标名称
         */
        @NotBlank(message = "The title cannot be blank")
        @Length(max = 200, message = "The title is limited 200 characters")
        private String title;

        /**
         * 单位符号
         */
        @Length(max = 10, message = "The unit is limited 10 characters")
        private String unit;

        /**
         * 指标描述
         */
        @Length(max = 500, message = "The description is limited 500 characters")
        private String description;

        /**
         * 比较设置
         */
        @Valid
        @NotNull(message = "The comparisonSetting cannot be null")
        private HotelKpiV2ComparisonRuleDTO comparisonSetting;
    }