fix: gen models

This commit is contained in:
Rogee
2024-12-25 20:16:41 +08:00
parent 905fb3f9f7
commit 7dde1820c3
4 changed files with 63 additions and 19 deletions

View File

@@ -93,7 +93,7 @@ func commandGenModelE(cmd *cobra.Command, args []string) error {
return defaultTableModelField
}
splits := strings.Split(toType, ".")
splits := strings.SplitN(toType, ".", 2)
typeName := splits[len(splits)-1]
pkg := splits[0]