Fix the problem of package name for generated kt code. (#3082)
Co-authored-by: 李春华 <lichunhua@threesoft.cn>
This commit is contained in:
@@ -82,5 +82,9 @@ func genApi(dir, pkg string, api *spec.ApiSpec) error {
|
||||
if e != nil {
|
||||
return e
|
||||
}
|
||||
return t.Execute(file, api)
|
||||
type data struct {
|
||||
*spec.ApiSpec
|
||||
Pkg string
|
||||
}
|
||||
return t.Execute(file, data{api, pkg})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user