Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActiveReq ¶
type ActiveReq struct {
Token string `json:"token" binding:"required"`
}
ActiveReq active req
type ChangePasswordReq ¶
type ChangePasswordReq struct {
Old string `json:"old" binding:"gte=8,lte=16"`
New string `json:"new" binding:"gte=8,lte=16"`
}
ChangePasswordReq reset password req
type Oauth2ExchangeReq ¶
type Oauth2ExchangeReq struct {
Source string `form:"source" binding:"required"`
Code string `form:"code" binding:"required"`
State string `form:"state" binding:"required"`
}
Oauth2ExchangeReq oauth2 exchange req
type ResetPasswordReq ¶
type SendEmailReq ¶
type SendEmailReq struct {
Email string `json:"email" binding:"required,email"`
Type string `json:"type" binding:"oneof=active reset"`
URL string `json:"url" binding:"required,url"`
}
SendEmailReq send email req
type SetStateReq ¶
type SetStateReq struct {
State string `json:"state" binding:"required"`
URL string `json:"url" binding:"required"`
}
SetStateReq state req
Source Files
¶
- api.go
- router.go
- user.go
Click to show internal directories.
Click to hide internal directories.