mirror of
https://gitee.com/WuKongDev/WuKongIM.git
synced 2025-12-06 14:59:08 +08:00
20 lines
700 B
Go
20 lines
700 B
Go
package service
|
|
|
|
import (
|
|
"github.com/WuKongIM/WuKongIM/internal/eventbus"
|
|
"github.com/WuKongIM/WuKongIM/pkg/wkdb"
|
|
wkproto "github.com/WuKongIM/WuKongIMGoProto"
|
|
)
|
|
|
|
var ConversationManager IConversationManager
|
|
|
|
type IConversationManager interface {
|
|
// Push 更新最近会话
|
|
Push(fakeChannelId string, channelType uint8, tagKey string, events []*eventbus.Event)
|
|
// GetUserChannelsFromCache 从缓存中获取用户的某一类型的最近会话集合
|
|
GetUserChannelsFromCache(uid string, conversationType wkdb.ConversationType) ([]wkproto.Channel, error)
|
|
|
|
// DeleteFromCache 删除用户的某个频道的最近会话
|
|
DeleteFromCache(uid string, channelId string, channelType uint8) error
|
|
}
|