|
@ -3,7 +3,7 @@ package service |
|
|
import ( |
|
|
import ( |
|
|
"fmt" |
|
|
"fmt" |
|
|
"gin-vue-admin/global" |
|
|
"gin-vue-admin/global" |
|
|
"gin-vue-admin/model" |
|
|
|
|
|
|
|
|
"gin-vue-admin/model/request" |
|
|
"gin-vue-admin/utils" |
|
|
"gin-vue-admin/utils" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ import ( |
|
|
//@param: authorityId string
|
|
|
//@param: authorityId string
|
|
|
//@return: err error, treeMap map[string][]model.SysMenu
|
|
|
//@return: err error, treeMap map[string][]model.SysMenu
|
|
|
|
|
|
|
|
|
func InitDB(conf model.InitDB) error { |
|
|
|
|
|
|
|
|
func InitDB(conf request.InitDB) error { |
|
|
if conf.Host == "" { |
|
|
if conf.Host == "" { |
|
|
conf.Host = "127.0.0.1" |
|
|
conf.Host = "127.0.0.1" |
|
|
} |
|
|
} |
|
|