# GmwrHotelKpiNoteDTO.java

    package cloud.wconnect.workperformance.pojo.dto.gmwr.hotelkpi.note;

    import lombok.Data;
    import org.hibernate.validator.constraints.Range;

    import jakarta.validation.Valid;
    import jakarta.validation.constraints.NotEmpty;
    import jakarta.validation.constraints.NotNull;
    import java.util.List;

    /**
     * DTO: GM Weekly Report Hotel KPI Note
     *
     * @author zc
     * @date 2024/12/30
     */
    @Data
    public class GmwrHotelKpiNoteDTO {

        /**
         * 指标类型
         */
        @NotNull(message = "The category cannot be null")
        @Range(min = 1, max = 3, message = "The category must in [1:Revenue 2:Expense 3:Quality & Service]")
        private Integer category;

        /**
         * List
         */
        @Valid
        @NotEmpty(message = "The list cannot be empty")
        private List<GmwrHotelKpiNoteMetricsDTO> list;

    }