sqlite3

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Sqlite3GroupMessageTableName          = "grpmsg"
	Sqlite3MessageAttributeTableName      = "msgattr"
	Sqlite3GuildMessageAttributeTableName = "gmsgattr"
	Sqlite3QuotedInfoTableName            = "quoinf"
	Sqlite3PrivateMessageTableName        = "privmsg"
	Sqlite3GuildChannelMessageTableName   = "guildmsg"
	Sqlite3UinInfoTableName               = "uininf"
	Sqlite3TinyInfoTableName              = "tinyinf"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type QuotedInfo

type QuotedInfo struct {
	ID            int64 // ID is the crc64 of 字段s below
	PrevID        string
	PrevGlobalID  int32
	QuotedContent string // QuotedContent is json of original content
}

QuotedInfo 引用回复

type StoredGroupMessage

type StoredGroupMessage struct {
	GlobalID     int32
	ID           string
	AttributeID  int64
	SubType      string
	QuotedInfoID int64
	GroupCode    int64
	AnonymousID  string
	Content      string // Content is json of original content
}

StoredGroupMessage 持久化群消息

type StoredGuildChannelMessage

type StoredGuildChannelMessage struct {
	ID           string
	AttributeID  int64
	GuildID      int64
	ChannelID    int64
	QuotedInfoID int64
	Content      string // Content is json of original content
}

StoredGuildChannelMessage 持久化频道消息

type StoredGuildMessageAttribute

type StoredGuildMessageAttribute struct {
	ID           int64 // ID is the crc64 of 字段s below
	MessageSeq   int64
	InternalID   int64
	SenderTinyID int64 // SenderTinyID is fk to TinyInfo
	Timestamp    int64
}

StoredGuildMessageAttribute 持久化频道消息属性

type StoredMessageAttribute

type StoredMessageAttribute struct {
	ID         int64 // ID is the crc64 of 字段s below
	MessageSeq int32
	InternalID int32
	SenderUin  int64 // SenderUin is fk to UinInfo
	Timestamp  int64
}

StoredMessageAttribute 持久化消息属性

type StoredPrivateMessage

type StoredPrivateMessage struct {
	GlobalID     int32
	ID           string
	AttributeID  int64
	SubType      string
	QuotedInfoID int64
	SessionUin   int64
	TargetUin    int64
	Content      string // Content is json of original content
}

StoredPrivateMessage 持久化私聊消息

type TinyInfo

type TinyInfo struct {
	ID   int64
	Name string
}

TinyInfo Tiny 与 昵称

type UinInfo

type UinInfo struct {
	Uin  int64
	Name string
}

UinInfo QQ 与 昵称

Jump to

Keyboard shortcuts

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