You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dingdanxia/client.go

36 lines
572 B

package dingdanxia
import (
"go.dtapp.net/golog"
)
// ClientConfig 实例配置
type ClientConfig struct {
ApiKey string // 密钥
}
// Client 实例
type Client struct {
config struct {
apiKey string // 密钥
}
gormLog struct {
status bool // 状态
client *golog.ApiGorm // 日志服务
}
mongoLog struct {
status bool // 状态
client *golog.ApiMongo // 日志服务
}
}
// NewClient 创建实例化
func NewClient(config *ClientConfig) (*Client, error) {
c := &Client{}
c.config.apiKey = config.ApiKey
return c, nil
}