add api data dictionary

This commit is contained in:
oppofind 2019-10-31 22:11:17 +08:00
parent 07437fcb74
commit a677d2fe29
2 changed files with 82 additions and 0 deletions

View File

@ -84,6 +84,11 @@ public class ApiConfig {
*/
private boolean adoc;
/**
* api data dictionary
*/
private List<ApiDataDictionary> dataDictionaries;
public String getServerUrl() {
return serverUrl;
@ -166,6 +171,7 @@ public class ApiConfig {
this.revisionLogs = CollectionUtil.asList(revisionLogs);
}
public boolean isMd5EncryptedHtmlName() {
return md5EncryptedHtmlName;
}
@ -189,4 +195,12 @@ public class ApiConfig {
public void setAdoc(boolean adoc) {
this.adoc = adoc;
}
public List<ApiDataDictionary> getDataDictionaries() {
return dataDictionaries;
}
public void setDataDictionaries(ApiDataDictionary... dataDictionary) {
this.dataDictionaries = CollectionUtil.asList(dataDictionary);
}
}

View File

@ -0,0 +1,68 @@
package com.power.doc.model;
/**
* @author yu 2019/10/31.
*/
public class ApiDataDictionary {
/**
* Dictionary
*/
private String title;
/**
* enumClass
*/
private Class enumClass;
/**
* value field
*/
private String valueField;
/**
* description field
*/
private String descField;
public static ApiDataDictionary dictionary() {
return new ApiDataDictionary();
}
public String getTitle() {
return title;
}
public ApiDataDictionary setTitle(String title) {
this.title = title;
return this;
}
public Class getEnumClass() {
return enumClass;
}
public ApiDataDictionary setEnumClass(Class enumClass) {
this.enumClass = enumClass;
return this;
}
public String getValueField() {
return valueField;
}
public ApiDataDictionary setValueField(String valueField) {
this.valueField = valueField;
return this;
}
public String getDescField() {
return descField;
}
public ApiDataDictionary setDescField(String descField) {
this.descField = descField;
return this;
}
}