mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-02 16:15:59 +08:00
errcode
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package localcache
|
||||
|
||||
import "google.golang.org/grpc"
|
||||
|
||||
type GroupLocalCache struct {
|
||||
cache map[string]GroupMemberIDsHash
|
||||
rpc *grpc.ClientConn
|
||||
}
|
||||
|
||||
type GroupMemberIDsHash struct {
|
||||
MemberListHash uint64
|
||||
UserIDs []string
|
||||
}
|
||||
|
||||
func NewGroupMemberIDsLocalCache(rpc *grpc.ClientConn) GroupLocalCache {
|
||||
return GroupLocalCache{
|
||||
cache: make(map[string]GroupMemberIDsHash, 0),
|
||||
rpc: rpc,
|
||||
}
|
||||
}
|
||||
|
||||
func (g *GroupMemberIDsHash) GetGroupMemberIDs(groupID string) []string {
|
||||
return []string{}
|
||||
}
|
||||
Reference in New Issue
Block a user