model

package
v0.0.0-...-5a34792 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type ChatRecord

type ChatRecord struct {
	Id         int64     `db:"id"`
	CreatedAt  time.Time `db:"created_at"`
	Kind       string    `db:"kind"`  // {"personal":"个人","group":"群聊"}
	Group      string    `db:"group"` // 群聊
	Sender     string    `db:"sender"`
	Receiver   string    `db:"receiver"`
	Content    string    `db:"content"`
	RawContent string    `db:"raw_content"`
}

type ChatRecordModel

type ChatRecordModel interface {
	// contains filtered or unexported methods
}

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

func NewChatRecordModel

func NewChatRecordModel(conn sqlx.SqlConn, c cache.CacheConf) ChatRecordModel

NewChatRecordModel 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