# HotelKpiStrWeekCategoryCrawlDTO.java

    package cloud.wconnect.workperformance.pojo.dto.hotelkpi.strdata.week.crawl;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Size;
    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import java.util.List;

    /**
     * DTO: Str Week Category Crawl
     *
     * @author zc
     * @date 2025/1/21
     */
    @Data
    public class HotelKpiStrWeekCategoryCrawlDTO {
        /**
         * Category Date: 1: Week, 2: MTD
         */
        @NotNull(message = "The category cannot be null")
        @Range(min = 1, max = 2, message = "The category must be in [1: Week, 2: MTD]")
        private Integer category;

        /**
         * List
         */
        @Valid
        @Size(min = 3, max = 3, message = "The list size must be 3")
        private List<HotelKpiStrWeekDetailCrawlDTO> list;
    }