# GmwrStrDataNoteDateDTO.java

    package cloud.wconnect.workperformance.pojo.dto.gmwr.strdata.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 jakarta.validation.constraints.Size;
    import java.util.List;

    /**
     * DTO: Str Data Note Date
     *
     * @author zc
     * @date 2024/11/5
     */
    @Data
    public class GmwrStrDataNoteDateDTO {
        /**
         * Category
         */
        @NotNull(message = "The category cannot be null")
        @Range(min = 1, max = 2, message = "The category must be int [1 - 2]")
        private Integer category;
        /**
         * List
         */
        @Valid
        @NotEmpty(message = "The list cannot be empty")
        @Size(max = 3, message = "The list max size is 3")
        private List<GmwrStrDataNoteDTO> list;
    }