Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUser ¶
Types ¶
type Authenticator ¶
Authenticator 定义了认证器的接口
type LoginData ¶
type LoginData struct { Username string `json:"username" binding:"required"` Password string `json:"password" binding:"required"` }
用于绑定前端传递的登录请求体
type LoginResponse ¶
type LoginResponse struct {
Data LoginToken `json:"data"`
}
type LoginToken ¶
type LoginToken struct {
Token string `json:"token" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.