Documentation ¶
Index ¶
- type ImageAuth
- type User
- func (User) ConnectionName() string
- func (p User) Insert(username, password string) (int, error)
- func (p User) SelectByUserID(userID int) (*User, error)
- func (p User) SelectByUsername(username string) (*User, error)
- func (u *User) TableName() string
- func (p User) Update(id int, updateMap map[string]interface{}) error
- func (p User) ValidateUsername(username string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageAuth ¶
type ImageAuth struct { ID int `gorm:"column:id"` Token string `gorm:"column:token"` Value string `gorm:"column:value"` DelFlag int `gorm:"column:del_flag"` CreateTime int `gorm:"column:create_time"` UpdateTime int `gorm:"column:update_time"` AccessTime int `gorm:"column:access_time"` }
func (ImageAuth) ConnectionName ¶
func (ImageAuth) ValidateAuthCode ¶
R
func (ImageAuth) ValidateTokenIsExist ¶
type User ¶
type User struct { ID int `gorm:"column:id"` Username string `gorm:"column:username"` Password string `gorm:"column:password"` DelFlag int `gorm:"column:del_flag"` AccessTime int64 `gorm:"column:access_time"` CreateTime int64 `gorm:"column:create_time"` UpdateTime int `gorm:"column:update_time"` }
func (User) ConnectionName ¶
Click to show internal directories.
Click to hide internal directories.