Files
open-im-server/pkg/common/db/localcache/conversation.go
T

29 lines
777 B
Go
Raw Normal View History

2023-02-02 19:40:54 +08:00
package localcache
import (
"context"
2023-02-08 17:56:04 +08:00
"github.com/OpenIMSDK/openKeeper"
2023-02-02 19:40:54 +08:00
"sync"
)
2023-02-08 17:56:04 +08:00
type ConversationLocalCacheInterface interface {
GetRecvMsgNotNotifyUserIDs(ctx context.Context, groupID string) []string
}
2023-02-02 19:40:54 +08:00
type ConversationLocalCache struct {
lock sync.Mutex
SuperGroupRecvMsgNotNotifyUserIDs map[string][]string
2023-02-08 17:56:04 +08:00
zkClient *openKeeper.ZkClient
2023-02-02 19:40:54 +08:00
}
2023-02-08 17:56:04 +08:00
func NewConversationLocalCache(zkClient *openKeeper.ZkClient) ConversationLocalCache {
2023-02-02 19:40:54 +08:00
return ConversationLocalCache{
SuperGroupRecvMsgNotNotifyUserIDs: make(map[string][]string, 0),
2023-02-08 17:56:04 +08:00
zkClient: zkClient,
2023-02-02 19:40:54 +08:00
}
}
func (g *ConversationLocalCache) GetRecvMsgNotNotifyUserIDs(ctx context.Context, groupID string) []string {
return []string{}
}