迁移结构体面向接口实现 - 保存代码
This commit is contained in:
27
abstract/wrapper_client.go
Normal file
27
abstract/wrapper_client.go
Normal file
@ -0,0 +1,27 @@
|
||||
// Package abstract ...
|
||||
//
|
||||
// Description : abstract ...
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 2024-08-20 17:26
|
||||
package abstract
|
||||
|
||||
import (
|
||||
"git.zhangdeman.cn/zhangdeman/database/define"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
// IWrapperClient 包装的客户端
|
||||
//
|
||||
// Author : go_developer@163.com<白茶清欢>
|
||||
//
|
||||
// Date : 17:26 2024/8/20
|
||||
type IWrapperClient interface {
|
||||
// AddWithConfigFile 通过配置文件增加数据库实例
|
||||
AddWithConfigFile(cfgFilePath string, logInstance *zap.Logger, extraFieldList []string) error
|
||||
// AddWithConfig 通过具体的配置增加数据库实例
|
||||
AddWithConfig(flag string, logInstance *zap.Logger, databaseConfig *define.Database, extraFieldList []string) error
|
||||
// BatchAddWithConfigDir 通过具体的配置列表增加数据库实例
|
||||
BatchAddWithConfigDir(cfgDir string, logInstance *zap.Logger, extraFieldList []string) error
|
||||
}
|
Reference in New Issue
Block a user