Documentation
¶
Index ¶
- func DeleteChat(userId, convId uint64) error
- func GetChatList(userId uint64) ([]*vo.ChatItemVo, error)
- func GetMessages(userId, convId uint64, page, pageSize int) ([]*vo.MessageVo, error)
- func MarkRead(userId, convId uint64) error
- func SendMessage(senderId, peerId uint64, content string, msgType int8) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteChat ¶
DeleteChat hides a conversation for the user.
func GetChatList ¶
func GetChatList(userId uint64) ([]*vo.ChatItemVo, error)
GetChatList returns the current user's conversations.
func GetMessages ¶
GetMessages returns paginated messages for a conversation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.