mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 13:18:01 +08:00
修复gins.SetDatabase方法参数
This commit is contained in:
parent
3b31fda887
commit
0992343aab
@ -49,7 +49,7 @@ func SetConfig(v *gcfg.Config) {
|
||||
}
|
||||
|
||||
// 自定义框架核心组件:Database
|
||||
func SetDatabase(v gdb.Link, names...string) {
|
||||
func SetDatabase(v *gdb.Db, names...string) {
|
||||
dbCacheKey := gFRAME_CORE_COMPONENT_NAME_DATABASE
|
||||
if len(names) > 0 {
|
||||
dbCacheKey += names[0]
|
||||
|
Loading…
Reference in New Issue
Block a user