service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatService

type ChatService struct {
	// contains filtered or unexported fields
}

func NewChatService

func NewChatService(ctx context.Context) *ChatService

NewChatService new ChatService

func (*ChatService) GetMessages

func (c *ChatService) GetMessages(req *chat.MessageListRequest, user_id int64) ([]*db.Message, error)

Get Messages history list

func (*ChatService) SendMessage

func (c *ChatService) SendMessage(req *chat.MessagePostRequest, user_id int64, create_at string) error

Jump to

Keyboard shortcuts

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