# GmwrViewModuleDTO.java

    package cloud.wconnect.workperformance.pojo.dto.gmwr.view;

    import lombok.AllArgsConstructor;
    import lombok.Data;
    import lombok.NoArgsConstructor;
    import org.hibernate.validator.constraints.Length;

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

    /**
     * DTO: View Module
     *
     * @author zc
     * @date 2024/12/31
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class GmwrViewModuleDTO {
        /**
         * 模块标题
         */
        @NotBlank(message = "The title cannot be blank")
        @Length(max = 100, message = "The title is limited 100 characters")
        private String title;
        /**
         * 排序
         */
        @NotNull(message = "The sort cannot be null.")
        private Integer sort;
        /**
         * 项目
         */
        @Valid
        @NotEmpty(message = "The list cannot be empty.")
        private List<GmwrViewItemDTO> list;
    }