# HotelKpiStrWeekSaveDTO.java

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

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotNull;
    import jakarta.validation.constraints.Size;
    import lombok.Data;

    import java.util.List;

    /**
     * DTO: Str Week Save
     *
     * @author zc
     * @date 2025/1/21
     */
    @Data
    public class HotelKpiStrWeekSaveDTO {
        /**
         * 周期日期（yyyyMMdd）
         */
        @NotNull(message = "The date cannot be null")
        private Long date;

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