fix: implement of GetUsersOnlineStatus (#567) (#569)

This commit is contained in:
BanTanger
2023-07-14 20:54:24 +08:00
committed by GitHub
parent 2f59be98d1
commit 9d6acf41f9
3 changed files with 4 additions and 9 deletions
+3 -3
View File
@@ -54,7 +54,7 @@ type ConversationCache interface {
// get one conversation from msgCache
GetConversation(ctx context.Context, ownerUserID, conversationID string) (*relationTb.ConversationModel, error)
DelConvsersations(ownerUserID string, conversationIDs ...string) ConversationCache
DelConversations(ownerUserID string, conversationIDs ...string) ConversationCache
DelUsersConversation(conversationID string, ownerUserIDs ...string) ConversationCache
// get one conversation from msgCache
GetConversations(
@@ -225,9 +225,9 @@ func (c *ConversationRedisCache) GetConversation(
)
}
func (c *ConversationRedisCache) DelConvsersations(ownerUserID string, convsersationIDs ...string) ConversationCache {
func (c *ConversationRedisCache) DelConversations(ownerUserID string, conversationIDs ...string) ConversationCache {
var keys []string
for _, conversationID := range convsersationIDs {
for _, conversationID := range conversationIDs {
keys = append(keys, c.getConversationKey(ownerUserID, conversationID))
}
cache := c.NewCache()