grpc文档开发

This commit is contained in:
暮光:城中城
2019-03-31 22:59:55 +08:00
parent e518957f16
commit 5cf08506ef
2 changed files with 7 additions and 0 deletions

View File

@@ -151,6 +151,8 @@ public class GrpcDocController {
private ColumnInfo findColumnInfo(String paramType) {
ColumnInfo columnInfo = new ColumnInfo();
try {
String paramName = paramType.substring(3);
columnInfo.setName(this.toLowerCaseFirstOne(paramName));
columnInfo.setType(paramType);
List<ColumnInfo> columnInfos = this.findClassColumns(Class.forName(paramType));
columnInfo.setParam(columnInfos);

View File

@@ -227,6 +227,11 @@
// 请求相关
app.requestResult = "";
},
columnToJsonString(columns){
var param = {};
param[columns.name] = columns.type;
},
reloadService(){
ajaxTemp("zyplayer-doc-dubbo/doc-dubbo/reloadService", "post", "json", {}, function (json) {
if (validateResult(json)) {