Documentation ¶
Index ¶
- Constants
- type Task
- type TaskType
- type UserInfo
- func (u *UserInfo) AddTask(types TaskType) (*Task, error)
- func (u *UserInfo) ChangeDefaultMODE(mode string) error
- func (u *UserInfo) ChangeDefaultNumber(num int) error
- func (u *UserInfo) ChangeDefaultScale(scale int) error
- func (u *UserInfo) ChangeDefaultSteps(steps int) error
- func (u *UserInfo) ChangeDefaultUC(uc string) error
- func (u *UserInfo) ChangeShare(share bool) error
- func (u *UserInfo) DefaultConfig() *api.DrawConfig
- func (u *UserInfo) LoadExtraLang(tag string) string
- func (u *UserInfo) LoadLang(tag string) string
- func (u *UserInfo) Passwd() string
- func (u *UserInfo) Permissions() permissions
- func (u *UserInfo) ProhibitString(bot *tgbotapi.BotAPI) string
- func (u *UserInfo) SetLang(langType string) error
- func (u *UserInfo) UseFree(n int)
Constants ¶
View Source
const ( T_Prohibit permissions = iota T_Guest T_Subscribe )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserInfo ¶
type UserInfo struct { UserInfo *db.UserInfo Subscribe *db.Subscribe ChatMember *tgbotapi.ChatMember LastUpdate time.Time }
func LoadAndInitUser ¶
func (*UserInfo) ChangeDefaultMODE ¶
func (*UserInfo) ChangeDefaultNumber ¶
func (*UserInfo) ChangeDefaultScale ¶
func (*UserInfo) ChangeDefaultSteps ¶
func (*UserInfo) ChangeDefaultUC ¶
func (*UserInfo) ChangeShare ¶
func (*UserInfo) DefaultConfig ¶
func (u *UserInfo) DefaultConfig() *api.DrawConfig
func (*UserInfo) LoadExtraLang ¶
func (*UserInfo) Permissions ¶
func (u *UserInfo) Permissions() permissions
Click to show internal directories.
Click to hide internal directories.