chatservice

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteChat

func DeleteChat(userId, convId uint64) error

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

func GetMessages(userId, convId uint64, page, pageSize int) ([]*vo.MessageVo, error)

GetMessages returns paginated messages for a conversation.

func MarkRead

func MarkRead(userId, convId uint64) error

MarkRead clears unread state for a conversation.

func SendMessage

func SendMessage(senderId, peerId uint64, content string, msgType int8) (uint64, error)

SendMessage creates or updates a direct conversation and stores a message.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL