Documentation
¶
Index ¶
- func AddAuth(data *Auth) (int64, error)
- func AddClaims(data *Claims) (int64, error)
- func DeleteAuth(id string) (int64, error)
- func DeleteClaims(id string) (int64, error)
- func UpdateAuth(id string, data *Auth) (int64, error)
- func UpdateClaims(id string, data map[string]interface{}) (int64, error)
- func VerifyAuth(username, pwd string) (bool, error)
- type Auth
- type Claims
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
Id int64 `json:"id"`
Username string `form:"username" json:"username" binding:"required" xorm:"varchar(255) notnull index"`
Password string `form:"password" json:"password" binding:"required" xorm:"varchar(255) not null"`
}
用户表
Click to show internal directories.
Click to hide internal directories.