api-gensdk
Advanced tools
Comparing version
@@ -56,2 +56,13 @@ "use strict"; | ||
metadata[ClassName].push(route); | ||
// 类型兼容 | ||
route.params.forEach(param => { | ||
switch (param.type) { | ||
case 'integer': | ||
param.type = 'number'; | ||
break; | ||
case 'array': | ||
param.type = `any[]`; | ||
break; | ||
} | ||
}); | ||
}); | ||
@@ -58,0 +69,0 @@ const fileTemplate = fs.readFileSync(templatePath, 'utf8'); |
{ | ||
"name": "api-gensdk", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
11683
5.04%159
7.43%