Documentation
¶
Index ¶
- type AppleMobileLogin
- type ApplicationI18Name
- type ApplicationRole
- type Binding
- type CreateApplication
- type CreateRole
- type CreateScope
- type FindUser
- type GoogleMobileLogin
- type ListRoles
- type ListScopes
- type MailRegister
- type OAuthAuthorize
- type OAuthClientStatus
- type OAuthCreateClient
- type OAuthTokens
- type PasswordLogin
- type PlutoRequest
- type PublicUserInfos
- type RefreshAccessToken
- type RegisterVerifyMail
- type ResetPasswordMail
- type ResetPasswordWeb
- type RoleScope
- type RoleScopeUpdate
- type UnBinding
- type UpdateApplicationI18Name
- type UpdateUserInfo
- type UserRole
- type VerifyAccessToken
- type VerifyIDToken
- type WechatMobileLogin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppleMobileLogin ¶
type AppleMobileLogin struct {
Code string `json:"code"`
DeviceID string `json:"device_id"`
AppID string `json:"app_id"`
}
func (*AppleMobileLogin) Validation ¶
func (aml *AppleMobileLogin) Validation() bool
type ApplicationI18Name ¶ added in v1.4.3
type ApplicationI18Name struct {
AppID uint `json:"app_id" schema:"app_id"`
}
func (*ApplicationI18Name) Validation ¶ added in v1.4.3
func (ai *ApplicationI18Name) Validation() bool
type ApplicationRole ¶
func (*ApplicationRole) Validation ¶
func (ar *ApplicationRole) Validation() bool
type Binding ¶
type Binding struct {
Mail string `json:"mail"`
Code string `json:"code"`
IDToken string `json:"id_token"`
Type string `json:"type"`
}
func (*Binding) Validation ¶
type CreateApplication ¶
type CreateApplication struct {
Name string `json:"name"`
}
func (*CreateApplication) Validation ¶
func (ca *CreateApplication) Validation() bool
type CreateRole ¶
func (*CreateRole) Validation ¶
func (cr *CreateRole) Validation() bool
type CreateScope ¶
func (*CreateScope) Validation ¶
func (cs *CreateScope) Validation() bool
type GoogleMobileLogin ¶
type GoogleMobileLogin struct {
IDToken string `json:"id_token"`
DeviceID string `json:"device_id"`
AppID string `json:"app_id"`
}
func (*GoogleMobileLogin) Validation ¶
func (gml *GoogleMobileLogin) Validation() bool
type ListRoles ¶
type ListRoles struct {
AppID uint `json:"app_id" schema:"app_id"`
}
func (*ListRoles) Validation ¶
type ListScopes ¶
type ListScopes struct {
AppID uint `json:"app_id" schema:"app_id"`
}
func (*ListScopes) Validation ¶
func (ls *ListScopes) Validation() bool
type MailRegister ¶
type MailRegister struct {
Mail string `json:"mail"`
Name string `json:"name"`
Password string `json:"password"`
AppName string `json:"app_id"`
}
func (*MailRegister) Validation ¶
func (mr *MailRegister) Validation() bool
type OAuthAuthorize ¶
type OAuthAuthorize struct {
ClientID string `json:"client_id" schema:"client_id"`
AppID string `json:"app_id" schema:"app_id"`
RedirectURI string `json:"redirect_uri" schema:"redirect_uri"`
ResponseType string `json:"response_type" schema:"response_type"`
State string `json:"state"`
Scopes string `json:"scopes"`
LifeTime int64 `json:"life_time"`
}
func (*OAuthAuthorize) Validation ¶
func (auth *OAuthAuthorize) Validation() bool
type OAuthClientStatus ¶
func (*OAuthClientStatus) Validation ¶
func (ocs *OAuthClientStatus) Validation() bool
type OAuthCreateClient ¶
type OAuthCreateClient struct {
Key string `json:"key"`
Secret string `json:"secret"`
RedirectURI string `json:"redirect_uri"`
}
func (*OAuthCreateClient) Validation ¶
func (occ *OAuthCreateClient) Validation() bool
type OAuthTokens ¶
type OAuthTokens struct {
GrantType string `json:"grant_type"`
Code string `json:"code"`
RedirectURI string `json:"redirect_uri"`
ClientID string
ClientSecret string
Scopes string `json:"scopes"`
AppID string `json:"app_id"`
DeviceID string `json:"device_id"`
Password string `json:"password"`
User string `json:"user"`
RefreshToken string `json:"refresh_token"`
}
func (*OAuthTokens) ValidateAuthorizationCode ¶
func (token *OAuthTokens) ValidateAuthorizationCode() bool
func (*OAuthTokens) ValidateClientCredentials ¶
func (token *OAuthTokens) ValidateClientCredentials() bool
func (*OAuthTokens) ValidatePasswordGrant ¶
func (token *OAuthTokens) ValidatePasswordGrant() bool
func (*OAuthTokens) ValidateRefreshToken ¶
func (token *OAuthTokens) ValidateRefreshToken() bool
func (*OAuthTokens) Validation ¶
func (token *OAuthTokens) Validation() bool
type PasswordLogin ¶
type PasswordLogin struct {
Account string `json:"account" schema:"account"`
Password string `json:"password" schema:"password"`
DeviceID string `json:"device_id" schema:"deviceID"`
AppID string `json:"app_id" schema:"appID"`
}
func (*PasswordLogin) Validation ¶
func (ml *PasswordLogin) Validation() bool
type PlutoRequest ¶
type PlutoRequest interface {
Validation() bool
}
type PublicUserInfos ¶
type PublicUserInfos struct {
IDs []string `schema:"ids"`
}
type RefreshAccessToken ¶
type RefreshAccessToken struct {
RefreshToken string `json:"refresh_token"`
AppID string `json:"app_id"`
Scopes string `json:"scopes"`
}
func (*RefreshAccessToken) Validation ¶
func (rat *RefreshAccessToken) Validation() bool
type RegisterVerifyMail ¶
func (*RegisterVerifyMail) Validation ¶
func (rvm *RegisterVerifyMail) Validation() bool
type ResetPasswordMail ¶
func (*ResetPasswordMail) Validation ¶
func (rpm *ResetPasswordMail) Validation() bool
type ResetPasswordWeb ¶
type ResetPasswordWeb struct {
Password string `json:"password" schema:"password"`
}
func (*ResetPasswordWeb) Validation ¶
func (rp *ResetPasswordWeb) Validation() bool
type RoleScope ¶
func (*RoleScope) Validation ¶
type RoleScopeUpdate ¶
func (*RoleScopeUpdate) Validation ¶
func (rscu *RoleScopeUpdate) Validation() bool
type UpdateApplicationI18Name ¶ added in v1.4.3
type UpdateApplicationI18Name struct {
AppID uint `json:"app_id"`
I18Names []struct {
Tag string `json:"tag"`
I18nName string `json:"i18n_name"`
} `json:"i18n_names"`
}
func (*UpdateApplicationI18Name) Validation ¶ added in v1.4.3
func (uai *UpdateApplicationI18Name) Validation() bool
type UpdateUserInfo ¶
func (*UpdateUserInfo) Validation ¶
func (uui *UpdateUserInfo) Validation() bool
type UserRole ¶
type UserRole struct {
UserID uint `json:"user_id" schema:"user_id"`
AppID uint `json:"app_id" schema:"app_id"`
RoleID uint `json:"role_id" schema:"role_id"`
}
func (*UserRole) Validation ¶
type VerifyAccessToken ¶
type VerifyAccessToken struct {
Token string `json:"token"`
}
func (*VerifyAccessToken) Validation ¶
func (vat *VerifyAccessToken) Validation() bool
type VerifyIDToken ¶
type VerifyIDToken struct {
Token string `json:"token"`
}
func (*VerifyIDToken) Validation ¶
func (vit *VerifyIDToken) Validation() bool
type WechatMobileLogin ¶
type WechatMobileLogin struct {
Code string `json:"code"`
DeviceID string `json:"device_id"`
AppID string `json:"app_id"`
}
func (*WechatMobileLogin) Validation ¶
func (wml *WechatMobileLogin) Validation() bool
Click to show internal directories.
Click to hide internal directories.