api-gensdk
Advanced tools
Comparing version 0.1.9 to 0.1.10
@@ -15,11 +15,15 @@ export interface RouteMetadataType { | ||
/** 参数定义 */ | ||
params: { | ||
/** 函数参数名 */ | ||
name: string; | ||
/** 请求参数名 */ | ||
paramName: string; | ||
/** 类型 */ | ||
type: string; | ||
}[]; | ||
params: ParamType[]; | ||
/** path中参数定义 */ | ||
paramsInPath: ParamType[]; | ||
} | ||
export interface ParamType { | ||
/** 函数参数名 */ | ||
name: string; | ||
/** 请求参数名 */ | ||
paramName: string; | ||
/** 类型 */ | ||
type: string; | ||
in: 'path' | 'query' | 'body'; | ||
} | ||
export declare class GenConfig { | ||
@@ -26,0 +30,0 @@ /** 生成目录 */ |
@@ -67,2 +67,4 @@ "use strict"; | ||
}); | ||
// param in path | ||
route.paramsInPath = route.params.filter(p => p.in === 'path'); | ||
}); | ||
@@ -69,0 +71,0 @@ const fileTemplate = fs.readFileSync(templatePath, 'utf8'); |
{ | ||
"name": "api-gensdk", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11887
165