# HotelKpiCrawlValueDTO.java

    package cloud.wconnect.workperformance.pojo.dto.hotelkpi.internal.crawl.value.v1;

    import jakarta.validation.constraints.NotNull;
    import lombok.AllArgsConstructor;
    import lombok.Builder;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Range;

    import java.util.List;

    /**
     * DTO: Hotel KPI Crawl Value
     *
     * @author zc
     * @date 2024/06/30
     */
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public class HotelKpiCrawlValueDTO {

        /**
         * 日期类型
         */
        @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;

        /**
         * 目标值
         */
        private List<HotelKpiCrawlValueIndexDTO> targetList;

        /**
         * 实际值
         */
        private List<HotelKpiCrawlValueIndexDTO> actualList;

    }