feat: update NewWrapperClient

This commit is contained in:
GG
2025-09-08 09:35:05 +08:00
committed by 白茶清欢
parent 37406967b5
commit aca5c2e5b3

View File

@ -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),