This commit is contained in:
John Guo
2021-10-13 22:34:52 +08:00
parent 920c97af79
commit 085c887b33
3 changed files with 3 additions and 3 deletions

View File

@ -200,7 +200,7 @@ func golangTypeToSchemaName(t reflect.Type) string {
s = gstr.TrimLeft(t.String(), "*")
)
if pkgPath := t.PkgPath(); pkgPath != "" && pkgPath != "." {
s = gstr.Replace(t.PkgPath(), `/`, `_`) + gstr.SubStrFrom(s, ".")
s = gstr.Replace(t.PkgPath(), `/`, `.`) + gstr.SubStrFrom(s, ".")
}
s = gstr.ReplaceByMap(s, map[string]string{
` `: ``,