Documentation ¶
Index ¶
- Variables
- func AdminRequired() gin.HandlerFunc
- func Authenticator(c *gin.Context) (interface{}, errors.WTError)
- func CurrentUser(ctx *gin.Context)
- func JwtAuth(LoginType int) *jwt.GinJWTMiddleware
- func LoginResponse(c *gin.Context, code int, token string, expire time.Time)
- type LoginDto
- type LoginOAuthDto
Constants ¶
This section is empty.
Variables ¶
View Source
var ( LoginStandard = 1 LoginOAuth = 2 )
login type
Functions ¶
func CurrentUser ¶
Types ¶
type LoginDto ¶
type LoginDto struct {
LoginToken string `form:"loginToken" json:"loginToken" binding:"required"`
}
type LoginOAuthDto ¶
type LoginOAuthDto struct { Code string `form:"code" binding:"required"` State string `form:"state" binding:"required"` }
LoginOAuthDto - oauth login
Click to show internal directories.
Click to hide internal directories.