feature:后端路由注册和数据库注册方法与原始框架分离,自定业务不再干扰原始框架内容。
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user