feat: add gen model

This commit is contained in:
Rogee
2024-12-19 14:40:13 +08:00
parent ab9e8ed8b4
commit 797ff49fc7
7 changed files with 347 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ func commandMigrate(cmd *cobra.Command, args []string) error {
}
}
db, err := postgres.GetDB(cmd.Flag("config").Value.String())
db, _, err := postgres.GetDB(cmd.Flag("config").Value.String())
if err != nil {
return errors.Wrap(err, "get db")
}