mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
* fix: redis support acquisition time * fix: GetActiveConversation * feat: jssdk GetConversations, GetActiveConversation * feat: jssdk GetConversations, GetActiveConversation * feat: jssdk GetConversations, GetActiveConversation * feat: jssdk GetConversations, GetActiveConversation * feat: jssdk GetConversations, GetActiveConversation
23 lines
591 B
Go
23 lines
591 B
Go
package jssdk
|
|
|
|
import (
|
|
"github.com/openimsdk/protocol/conversation"
|
|
"github.com/openimsdk/protocol/sdkws"
|
|
)
|
|
|
|
type ActiveConversationsReq struct {
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type ConversationMsg struct {
|
|
Conversation *conversation.Conversation `json:"conversation"`
|
|
LastMsg *sdkws.MsgData `json:"lastMsg"`
|
|
MaxSeq int64 `json:"maxSeq"`
|
|
ReadSeq int64 `json:"readSeq"`
|
|
}
|
|
|
|
type ConversationsResp struct {
|
|
UnreadCount int64 `json:"unreadCount"`
|
|
Conversations []ConversationMsg `json:"conversations"`
|
|
}
|