dao

package
v0.0.0-...-4cc9216 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

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

func NewMessage

func NewMessage(db *gorm.DB) *Message

func (*Message) CreateMessage

func (b *Message) CreateMessage(Message *base.LiveMessage) error

func (*Message) GetHistoryMessagesByTime

func (b *Message) GetHistoryMessagesByTime(liveID int64, startTime int64, offset int64) ([]*base.LiveMessage, error)

func (*Message) GetMessageByID

func (b *Message) GetMessageByID(id int64) (*base.LiveMessage, error)

Jump to

Keyboard shortcuts

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