Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APILoginResponse ¶
type APILoginResponse struct {
AccessToken string `json:"access_token" xml:"access_token" form:"access_token" binding:"required"`
TokenType string `json:"token_type"`
ExpiresIn int64 `json:"expires_in"`
}
APILoginResponse api login response
type CreateAccountRequest ¶
type CreateAccountRequest struct {
Email string `json:"email" xml:"email" form:"email" binding:"required"`
Username string `json:"username" xml:"username" form:"username" binding:"required"`
Password string `json:"password" xml:"password" form:"password" binding:"required"`
ConfirmPassword string `json:"confirmPassword" xml:"confirmPassword" form:"confirmPassword" binding:"required"`
}
CreateAccountRequest /signup
type GoogleUserInfo ¶
type GoogleUserInfo struct {
ID string `json:"id"`
FamilyName string `json:"family_name"`
Name string `json:"name"`
Picture string `json:"picture"`
Local string `json:"local"`
Email string `json:"Email"`
GivenName string `json:"GivenName"`
VerifiedEmail bool `json:"verified_email"`
}
GoogleUserInfo user info
type LoginRequest ¶
type LoginRequest struct {
Email string `json:"email" xml:"email" form:"email" binding:"required"`
Password string `json:"password" xml:"password" form:"password" binding:"required"`
}
LoginRequest login request
type LoginResponse ¶
LoginResponse login response
type UpdatePasswordRequest ¶
type UpdatePasswordRequest struct {
CurrentPassword string `json:"currentPassword" xml:"currentPassword" form:"currentPassword" binding:"required"`
Password string `json:"password" xml:"password" form:"password" binding:"required"`
ConfirmPassword string `json:"confirmPassword" xml:"confirmPassword" form:"confirmPassword" binding:"required"`
}
UpdatePasswordRequest /api/account/update/password
Source Files
¶
Click to show internal directories.
Click to hide internal directories.