user

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User added in v1.4.0

type User struct {
	AuthorId       string
	AuthorName     string
	ChanPermission int64
	Mention        string
	RatCookie      string
	UserInfo       *models.RegisteredUser
}

func NewUser added in v1.4.0

func NewUser(d *gorm.DB, i string) (User, error)

func (*User) HasRatCookie added in v1.4.0

func (u *User) HasRatCookie() bool

func (*User) IsAdmin added in v1.4.0

func (u *User) IsAdmin() bool

func (*User) IsRegistered added in v1.4.0

func (u *User) IsRegistered() bool

func (*User) UpdateSotBalance added in v1.4.0

func (u *User) UpdateSotBalance(d *gorm.DB, h *http.Client) error

func (*User) UserNotifyFailedToken added in v1.4.0

func (u *User) UserNotifyFailedToken(d *gorm.DB) bool

Jump to

Keyboard shortcuts

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