# HotelKpiWarningCommentDTO.java

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

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

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

    /**
     * DTO: Hotel KPI Warning Comment
     *
     * @author zc
     * @date 2025/01/11
     */
    @Data
    public class HotelKpiWarningCommentDTO {
        /**
         * id
         */
        @JsonView({Views.ListView.class})
        private Long id;

        /**
         * 日期类型
         */
        @NotNull(message = "The dateType cannot be null")
        @Range(min = 1, max = 4, message = "The dateType must be between [1:Week 2:Month 3:Quarter 4:Year]")
        private Integer dateType;

        /**
         * 日期(yyyyMMdd; yyyyMM; yyyy)
         */
        @NotNull(message = "The date cannot be null")
        private Long date;

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

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

        /**
         * 内容
         */
        @JsonView({Views.ListView.class})
        @NotBlank(message = "The content cannot be blank")
        private String content;

        /**
         * 更新人 id
         */
        @JsonView({Views.ListView.class})
        private Integer updatedBy;

        /**
         * 更新人名称
         */
        @JsonView({Views.ListView.class})
        private String updatedName;

        /**
         * 更新时间
         */
        @JsonView({Views.ListView.class})
        private Long updatedTime;

        /**
         * 更新人头像
         */
        @JsonView({Views.ListView.class})
        private String avatar;
    }