feature:后端路由注册和数据库注册方法与原始框架分离,自定业务不再干扰原始框架内容。

This commit is contained in:
pixelmaxQM
2024-06-23 17:00:37 +08:00
parent b628bd7769
commit 6e2140258e
7 changed files with 55 additions and 13 deletions

View File

@@ -58,5 +58,12 @@ func RegisterTables() {
global.GVA_LOG.Error("register table failed", zap.Error(err))
os.Exit(0)
}
err = bizModel(db)
if err != nil {
global.GVA_LOG.Error("register biz_table failed", zap.Error(err))
os.Exit(0)
}
global.GVA_LOG.Info("register table success")
}