dao

package
v0.0.0-...-55e1567 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSuchRecord = errors.New("no such video record")

Functions

This section is empty.

Types

type Message

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

func NewMessage

func NewMessage(db *gorm.DB) *Message

NewMessage create a message dao.

func (*Message) BatchGetLatestMessage

func (m *Message) BatchGetLatestMessage(uId int64, toUIdList []int64) ([]*model.Message, error)

func (*Message) ChatAction

func (m *Message) ChatAction(message *model.Message) error

func (*Message) GetLatestMessage

func (m *Message) GetLatestMessage(uId, toUId int64) (*model.Message, error)

func (*Message) GetMessages

func (m *Message) GetMessages(toId, fromId, time int64) ([]*model.Message, error)

Jump to

Keyboard shortcuts

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