添加推送作者配置 添加torna推送接口作者
This commit is contained in:
parent
a696a247c2
commit
31ba32d7c7
|
@ -98,6 +98,7 @@ public class TornaBuilder {
|
|||
api.setName(StringUtils.isBlank(a.getDesc()) ? a.getName() : a.getDesc());
|
||||
api.setItems(buildApis(a.getList(), TornaUtil.setDebugEnv(apiConfig,tornaApi)));
|
||||
api.setIsFolder(TornaConstants.YES);
|
||||
api.setAuthor(apiConfig.getAuthor());
|
||||
apisList.add(api);
|
||||
}
|
||||
tornaApi.setApis(apisList);
|
||||
|
|
|
@ -64,6 +64,7 @@ public class RpcTornaBuilder {
|
|||
TornaUtil.setDebugEnv(apiConfig,tornaApi);
|
||||
api.setItems(buildDubboApis(a.getList()));
|
||||
api.setIsFolder(TornaConstants.YES);
|
||||
api.setAuthor(apiConfig.getAuthor());
|
||||
api.setDubboInfo(new DubboInfo().builder()
|
||||
.setAuthor(a.getAuthor())
|
||||
.setProtocol(a.getProtocol())
|
||||
|
|
|
@ -325,14 +325,14 @@ public class ApiConfig {
|
|||
/**
|
||||
* 是否为dubbo
|
||||
*/
|
||||
private boolean isDubbo;
|
||||
private String author;
|
||||
|
||||
public boolean isDubbo() {
|
||||
return isDubbo;
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setDubbo(boolean dubbo) {
|
||||
this.isDubbo = dubbo;
|
||||
public void setAuthor(String author) {
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
public boolean isTornaDebug() {
|
||||
|
|
|
@ -36,6 +36,7 @@ public class Apis {
|
|||
private String isFolder;
|
||||
private String parentId;
|
||||
private String isShow;
|
||||
private String author;
|
||||
private DubboInfo dubboInfo;
|
||||
private List<HttpParam> headerParams;
|
||||
private List<HttpParam> pathParams;
|
||||
|
@ -44,6 +45,14 @@ public class Apis {
|
|||
private String errorCodeParams;
|
||||
private List<Apis> items;
|
||||
|
||||
public String getAuthor() {
|
||||
return author;
|
||||
}
|
||||
|
||||
public void setAuthor(String author) {
|
||||
this.author = author;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
|
|
@ -97,6 +97,7 @@ public class TornaUtil {
|
|||
methodApi.setContentType(apiMethodDoc.getContentType());
|
||||
methodApi.setDescription(apiMethodDoc.getDetail());
|
||||
methodApi.setIsShow(TornaConstants.YES);
|
||||
methodApi.setAuthor(apiMethodDoc.getAuthor());
|
||||
|
||||
/**
|
||||
* {
|
||||
|
@ -167,6 +168,7 @@ public class TornaUtil {
|
|||
methodApi.setName(apiMethodDoc.getDesc());
|
||||
methodApi.setDescription(apiMethodDoc.getDetail());
|
||||
methodApi.setIsShow(TornaConstants.YES);
|
||||
methodApi.setAuthor(apiMethodDoc.getAuthor());
|
||||
methodApi.setUrl(apiMethodDoc.getMethodDefinition());
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue