新增isdubbo配置 用来推送torna文档

This commit is contained in:
Forget 2021-04-13 16:51:15 +08:00
parent 5a25697097
commit 46f058486a
3 changed files with 37 additions and 0 deletions

View File

@ -320,6 +320,18 @@ public class ApiConfig {
* torna调试开关
*/
private boolean tornaDebug;
/**
* 是否为dubbo
*/
private boolean isDubbo;
public boolean isDubbo() {
return isDubbo;
}
public void setDubbo(boolean dubbo) {
this.isDubbo = dubbo;
}
public boolean isTornaDebug() {
return tornaDebug;

View File

@ -22,6 +22,8 @@
*/
package com.power.doc.model;
import com.power.doc.model.torna.EnumInfo;
import java.util.List;
import java.util.Map;
@ -94,11 +96,24 @@ public class ApiParam {
* enum values
*/
private List<String> enumValues;
/**
* enum
*/
private List<EnumInfo> enumInfo;
/**
* Valid @Max
*/
private String maxLength;
public List<EnumInfo> getEnumInfo() {
return enumInfo;
}
public ApiParam setEnumInfo(List<EnumInfo> enumInfo) {
this.enumInfo = enumInfo;
return this;
}
public static ApiParam of(){
return new ApiParam();
}

View File

@ -37,11 +37,21 @@ public class HttpParam {
private String example;
private String description;
private String parentId;
private List<EnumInfo> enumInfo;
private String code;
private String msg;
private String solution;
private List<HttpParam> children;
public List<EnumInfo> getEnumInfo() {
return enumInfo;
}
public HttpParam setEnumInfo(List<EnumInfo> enumInfo) {
this.enumInfo = enumInfo;
return this;
}
public String getName() {
return name;
}