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.
Open-IM-Server/pkg/common/db/localcache/conversation.go

29 lines
777 B

2 years ago
package localcache
import (
"context"
2 years ago
"github.com/OpenIMSDK/openKeeper"
2 years ago
"sync"
)
2 years ago
type ConversationLocalCacheInterface interface {
GetRecvMsgNotNotifyUserIDs(ctx context.Context, groupID string) []string
}
2 years ago
type ConversationLocalCache struct {
lock sync.Mutex
SuperGroupRecvMsgNotNotifyUserIDs map[string][]string
2 years ago
zkClient *openKeeper.ZkClient
2 years ago
}
2 years ago
func NewConversationLocalCache(zkClient *openKeeper.ZkClient) ConversationLocalCache {
2 years ago
return ConversationLocalCache{
SuperGroupRecvMsgNotNotifyUserIDs: make(map[string][]string, 0),
2 years ago
zkClient: zkClient,
2 years ago
}
}
func (g *ConversationLocalCache) GetRecvMsgNotNotifyUserIDs(ctx context.Context, groupID string) []string {
return []string{}
}