grpc文档开发
This commit is contained in:
@@ -151,6 +151,8 @@ public class GrpcDocController {
|
|||||||
private ColumnInfo findColumnInfo(String paramType) {
|
private ColumnInfo findColumnInfo(String paramType) {
|
||||||
ColumnInfo columnInfo = new ColumnInfo();
|
ColumnInfo columnInfo = new ColumnInfo();
|
||||||
try {
|
try {
|
||||||
|
String paramName = paramType.substring(3);
|
||||||
|
columnInfo.setName(this.toLowerCaseFirstOne(paramName));
|
||||||
columnInfo.setType(paramType);
|
columnInfo.setType(paramType);
|
||||||
List<ColumnInfo> columnInfos = this.findClassColumns(Class.forName(paramType));
|
List<ColumnInfo> columnInfos = this.findClassColumns(Class.forName(paramType));
|
||||||
columnInfo.setParam(columnInfos);
|
columnInfo.setParam(columnInfos);
|
||||||
|
|||||||
@@ -227,6 +227,11 @@
|
|||||||
// 请求相关
|
// 请求相关
|
||||||
app.requestResult = "";
|
app.requestResult = "";
|
||||||
},
|
},
|
||||||
|
columnToJsonString(columns){
|
||||||
|
var param = {};
|
||||||
|
param[columns.name] = columns.type;
|
||||||
|
|
||||||
|
},
|
||||||
reloadService(){
|
reloadService(){
|
||||||
ajaxTemp("zyplayer-doc-dubbo/doc-dubbo/reloadService", "post", "json", {}, function (json) {
|
ajaxTemp("zyplayer-doc-dubbo/doc-dubbo/reloadService", "post", "json", {}, function (json) {
|
||||||
if (validateResult(json)) {
|
if (validateResult(json)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user