package
Version:
v0.2.13
Opens a new window with list of versions in this module.
Published: May 30, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
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)
GetChatList returns the current user's conversations.
GetMessages returns paginated messages for a conversation.
MarkRead clears unread state for a conversation.
SendMessage creates or updates a direct conversation and stores a message.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.