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]
|
typeName := splits[len(splits)-1]
|
||||||
|
|
||||||
pkg := splits[0]
|
pkg := splits[0]
|
||||||
if strings.HasPrefix(pkg, "/") {
|
if strings.HasPrefix(pkg, "~") {
|
||||||
pkg = gomod.GetModuleName() + pkg
|
pkg = strings.Replace(pkg, "~", gomod.GetModuleName(), 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
pkgSplits := strings.Split(splits[0], "/")
|
pkgSplits := strings.Split(splits[0], "/")
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# ignores: [] # ignore tables
|
// ignores: [] # ignore tables
|
||||||
# types:
|
// types:
|
||||||
# users: # table name
|
// users: # table name
|
||||||
# oauth: {{.ModuleName}}/pkg/pg.UserOAuth
|
// meta: ~/database/fields.UserMeta
|
||||||
#
|
|
||||||
|
|||||||
Reference in New Issue
Block a user