权限,列表,详情
This commit is contained in:
+3
-1
@@ -23,6 +23,7 @@ import (
|
||||
"pkg.local/modelbase"
|
||||
"pkg.local/mysql"
|
||||
"pkg.local/redis"
|
||||
"pkg.local/utils"
|
||||
"pkg.local/validate"
|
||||
)
|
||||
|
||||
@@ -104,7 +105,8 @@ func main() {
|
||||
logx.Errorf("redis init: %v", err)
|
||||
}
|
||||
|
||||
modelbase.Init(db, modelbase.Config{Prefix: c.Mysql.Prefix})
|
||||
debug := utils.GetConfigBool("mysql.debug")
|
||||
modelbase.Init(db, modelbase.Config{Prefix: c.Mysql.Prefix, Debug: debug})
|
||||
|
||||
ctx := svc.NewServiceContext(c, db)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user