Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit f38e302

Browse files
committed
Filter documents without apiMethodDocs
1 parent a9a75e3 commit f38e302

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/com/ly/doc/template/IRestDocTemplate.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ default List<ApiDoc> processApiData(ProjectDocConfigBuilder projectBuilder, Fram
9595

9696
List<ApiMethodDoc> apiMethodDocs = buildEntryPointMethod(cls, apiConfig, projectBuilder,
9797
frameworkAnnotations, configApiReqParams, baseMappingHandler, headerHandler);
98+
if (CollectionUtil.isEmpty(apiMethodDocs)) {
99+
continue;
100+
}
98101
this.handleApiDoc(cls, apiDocList, apiMethodDocs, order, apiConfig.isMd5EncryptedHtmlName());
99102
}
100103
apiDocList = handleTagsApiDoc(apiDocList);

0 commit comments

Comments
 (0)