feat: fix issues
This commit is contained in:
@@ -97,8 +97,8 @@ func commandGenModelE(cmd *cobra.Command, args []string) error {
|
||||
typeName := splits[len(splits)-1]
|
||||
|
||||
pkg := splits[0]
|
||||
if strings.HasPrefix(pkg, "/") {
|
||||
pkg = gomod.GetModuleName() + pkg
|
||||
if strings.HasPrefix(pkg, "~") {
|
||||
pkg = strings.Replace(pkg, "~", gomod.GetModuleName(), 1)
|
||||
}
|
||||
|
||||
pkgSplits := strings.Split(splits[0], "/")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# ignores: [] # ignore tables
|
||||
# types:
|
||||
# users: # table name
|
||||
# oauth: {{.ModuleName}}/pkg/pg.UserOAuth
|
||||
#
|
||||
// ignores: [] # ignore tables
|
||||
// types:
|
||||
// users: # table name
|
||||
// meta: ~/database/fields.UserMeta
|
||||
|
||||
|
||||
Reference in New Issue
Block a user