Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetChatList ¶
func GetChatList(userId uint64) ([]*vo.ChatItemVo, error)
GetChatList returns the current user's conversations.
Types ¶
type MessageCursorResult ¶ added in v0.2.26
type MessageCursorResult struct {
List []*vo.MessageVo `json:"list"`
HasMoreBefore bool `json:"hasMoreBefore"`
HasMoreAfter bool `json:"hasMoreAfter"`
NextBeforeId uint64 `json:"nextBeforeId"`
LatestId uint64 `json:"latestId"`
}
func GetMessages ¶
func GetMessages(userId, convId uint64, beforeId, afterId uint64, limit int) (*MessageCursorResult, error)
GetMessages returns cursor-paginated messages for a conversation.
Click to show internal directories.
Click to hide internal directories.