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

Commit ded5551

Browse files
tanghclinwumingshi
authored andcommitted
feat:add dubboMethod field for dubbo rpc
1 parent 285637d commit ded5551

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

src/main/java/com/ly/doc/model/torna/Apis.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,11 @@ public class Apis implements Serializable {
165165
*/
166166
private String version;
167167

168+
/**
169+
* dubboMethod, such as:com.xx.User com.xxx.UserService.findById(java.lang.Long id)
170+
*/
171+
private String dubboMethod;
172+
168173
public String getVersion() {
169174
return version;
170175
}
@@ -359,4 +364,12 @@ public void setDeprecated(String deprecated) {
359364
this.deprecated = deprecated;
360365
}
361366

367+
public String getDubboMethod() {
368+
return dubboMethod;
369+
}
370+
371+
public void setDubboMethod(String dubboMethod) {
372+
this.dubboMethod = dubboMethod;
373+
}
374+
362375
}

src/main/java/com/ly/doc/utils/TornaUtil.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ public static List<Apis> buildDubboApis(List<RpcJavaMethod> apiMethodDocs) {
304304
methodApi.setResponseParams(buildParams(apiMethodDoc.getResponseParams()));
305305
methodApi.setOrderIndex(apiMethodDoc.getOrder());
306306
methodApi.setDeprecated(apiMethodDoc.isDeprecated() ? DocAnnotationConstants.DEPRECATED : null);
307+
methodApi.setDubboMethod(apiMethodDoc.getJavaMethod().getDeclarationSignature(false));
307308
// Json
308309
if (CollectionUtil.isNotEmpty(apiMethodDoc.getRequestParams())) {
309310
methodApi.setRequestParams(buildParams(apiMethodDoc.getRequestParams()));

0 commit comments

Comments
 (0)