|
|
|
@ -13,12 +13,14 @@ type gormClientFun func() *dorm.GormClient
|
|
|
|
|
// databaseName string
|
|
|
|
|
type mongoClientFun func() (*dorm.MongoClient, string)
|
|
|
|
|
|
|
|
|
|
// ClientConfig 实例配置
|
|
|
|
|
type ClientConfig struct {
|
|
|
|
|
GormClientFun gormClientFun // 日志配置
|
|
|
|
|
MongoClientFun mongoClientFun // 日志配置
|
|
|
|
|
Debug bool // 日志开关
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Client 实例
|
|
|
|
|
type Client struct {
|
|
|
|
|
requestClient *gorequest.App // 请求服务
|
|
|
|
|
config struct {
|
|
|
|
|