api imports take the form of relative paths (#3201)

Co-authored-by: 李春华 <lichunhua@threesoft.cn>
This commit is contained in:
lchjczw
2023-05-10 11:40:07 +08:00
committed by GitHub
parent b1c4c4736f
commit 9fa98c2bd3
2 changed files with 10 additions and 12 deletions

View File

@@ -114,7 +114,7 @@ func primitiveType(tp string) (string, bool) {
switch tp {
case "string":
return "string", true
case "int", "int8", "int32", "int64", "uint", "uint8", "uint16", "uint32", "uint64":
case "int", "int8","int16", "int32", "int64", "uint", "uint8", "uint16", "uint32", "uint64":
return "number", true
case "float", "float32", "float64":
return "number", true