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.
Click to show internal directories.
Click to hide internal directories.