Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Auth = authType{}
View Source
var Captcha = captchaType{}
Functions ¶
func IsApiTokenValid ¶
IsApiTokenValid 检查API令牌是否有效
func JwtPersistentHandler ¶
func JwtPersistentHandler(userID uint) (*models.JsonWebToken, error)
JwtPersistentHandler 持久化处理函数,使用依赖注入到 utils 中防止循环引用
func RevokeChecker ¶
RevokeChecker 令牌撤销检查器,使用依赖注入到 utils 中防止循环引用
Types ¶
type CaptchaReq ¶
type CaptchaReq struct {
CaptchaToken string `json:"captcha_token"` // Captcha Token
}
Click to show internal directories.
Click to hide internal directories.