Documentation
¶
Index ¶
Constants ¶
View Source
const ( MessageTypeText = "text" MessageTypeAt = "at" MessageTypeAudio = "audio" MessageTypeImage = "image" MessageTypeFile = "file" MessageTypeLocation = "location" MessageTypeVideo = "video" MessageTypeLink = "link" MessageTypeContact = "contact" MessageTypeGroup = "group" MessageTypeRich = "rich" MessageTypeAction = "action" )
View Source
const ( PlatformSlack = "slack" PlatformTelegram = "telegram" PlatformDiscord = "discord" )
View Source
const ( StrengthAttr RoleAttr = "strength" CultureAttr RoleAttr = "culture" EnvironmentAttr RoleAttr = "environment" CharismaAttr RoleAttr = "charisma" TalentAttr RoleAttr = "talent" IntellectAttr RoleAttr = "intellect" StrengthShort AttrShort = "str" CultureShort AttrShort = "cul" EnvironmentShort AttrShort = "env" CharismaShort AttrShort = "cha" TalentShort AttrShort = "tal" IntellectShort AttrShort = "int" )
View Source
const SuperUserID = 1
View Source
const TodoCompletedExp = 2
View Source
const TodoCreatedExp = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttrChange ¶ added in v0.0.24
type BillRecord ¶ added in v0.0.24
type Credential ¶ added in v0.0.9
type Message ¶
type Message struct {
ID int `db:"id"`
UUID string `db:"uuid"`
Type string `db:"type"`
Text string `db:"text"`
Time time.Time `db:"time"`
}
func (*Message) IsMessageOfAction ¶ added in v0.0.24
func (*Message) RemoveActionFlag ¶ added in v0.0.24
type Role ¶ added in v0.0.24
type Role struct {
ID int `db:"id"`
UserID int `db:"user_id"`
Profession string `db:"profession"`
Exp int `db:"exp"`
Level int `db:"level"`
// attr
Strength int `db:"strength"`
Culture int `db:"culture"`
Environment int `db:"environment"`
Charisma int `db:"charisma"`
Talent int `db:"talent"`
Intellect int `db:"intellect"`
Time time.Time `db:"time"`
}
type Todo ¶ added in v0.0.24
type Todo struct {
ID int `db:"id"`
Content string `db:"content"`
Priority int `db:"priority"`
IsRemindAtTime bool `db:"is_remind_at_time"`
RemindAt *time.Time `db:"remind_at"`
RepeatMethod string `db:"repeat_method"`
RepeatRule string `db:"repeat_rule"`
Category string `db:"category"`
Remark string `db:"remark"`
Complete bool `db:"complete"`
Time time.Time `db:"time"`
}
Click to show internal directories.
Click to hide internal directories.