messages

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type Messages

type Messages struct {
	Id         int64     `db:"id"`
	ChannelId  string    `db:"channel_id"`
	SendUserId int64     `db:"send_user_id"`
	Message    string    `db:"message"`
	CreateTime time.Time `db:"create_time"`
	UpdateTime time.Time `db:"update_time"`
}

type MessagesModel

type MessagesModel interface {
	GetListByChannelId(channelId string, minId int64) ([]Messages, error)
	// contains filtered or unexported methods
}

MessagesModel is an interface to be customized, add more methods here, and implement the added methods in customMessagesModel.

func NewMessagesModel

func NewMessagesModel(conn sqlx.SqlConn) MessagesModel

NewMessagesModel returns a model for the database table.

Jump to

Keyboard shortcuts

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