diff --git a/wrapper_client.go b/wrapper_client.go index 9fdcaa6..78a216a 100644 --- a/wrapper_client.go +++ b/wrapper_client.go @@ -11,14 +11,15 @@ import ( "context" "errors" "fmt" + "path/filepath" + "strings" + "sync" + "git.zhangdeman.cn/zhangdeman/consts" "git.zhangdeman.cn/zhangdeman/database/abstract" "git.zhangdeman.cn/zhangdeman/database/define" "git.zhangdeman.cn/zhangdeman/serialize" "go.uber.org/zap" - "path/filepath" - "strings" - "sync" "gorm.io/gorm" ) @@ -32,7 +33,7 @@ func init() { WrapperClient = NewWrapperClient() } -func NewWrapperClient() *wrapperClient { +func NewWrapperClient() abstract.IWrapperClient { return &wrapperClient{ lock: &sync.RWMutex{}, clientTable: make(map[string]abstract.IWrapperDatabaseClient),