# GmwrStrDataCategorySaveDTO.java

    package cloud.wconnect.workperformance.pojo.dto.gmwr.strdata.save;

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

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

    /**
     * DTO: Str Data Date Save
     *
     * @author zc
     * @date 2025/1/21
     */
    @Data
    public class GmwrStrDataCategorySaveDTO {
        /**
         * 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<GmwrStrDataDetailSaveDTO> list;
    }