request

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppleMobileLogin added in v0.2.0

type AppleMobileLogin struct {
	Code     string `json:"code"`
	DeviceID string `json:"device_id"`
	AppID    string `json:"app_id"`
}

func (*AppleMobileLogin) Validation added in v0.2.0

func (aml *AppleMobileLogin) Validation() bool

type ApplicationRole added in v0.4.0

type ApplicationRole struct {
	AppID  uint `json:"app_id"`
	RoleID uint `json:"role_id"`
}

func (*ApplicationRole) Validation added in v1.0.0

func (ar *ApplicationRole) Validation() bool

type Binding added in v1.0.0

type Binding struct {
	Mail    string `json:"mail"`
	Code    string `json:"code"`
	IDToken string `json:"id_token"`
	Type    string `json:"type"`
}

func (*Binding) Validation added in v1.0.0

func (binding *Binding) Validation() bool

type CreateApplication added in v0.4.0

type CreateApplication struct {
	Name string `json:"name"`
}

func (*CreateApplication) Validation added in v0.4.0

func (ca *CreateApplication) Validation() bool

type CreateRole added in v0.4.0

type CreateRole struct {
	AppID uint   `json:"app_id"`
	Name  string `json:"name"`
}

func (*CreateRole) Validation added in v0.4.0

func (cr *CreateRole) Validation() bool

type CreateScope added in v0.4.0

type CreateScope struct {
	AppID uint   `json:"app_id"`
	Name  string `json:"name"`
}

func (*CreateScope) Validation added in v0.4.0

func (cs *CreateScope) Validation() bool

type FindUser added in v0.4.0

type FindUser struct {
	Name string `json:"name"`
}

func (*FindUser) Validation added in v0.4.0

func (fu *FindUser) 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 added in v0.4.0

type ListRoles struct {
	AppID uint `json:"app_id" schema:"app_id"`
}

func (*ListRoles) Validation added in v1.0.0

func (lr *ListRoles) Validation() bool

type ListScopes added in v0.4.0

type ListScopes struct {
	AppID uint `json:"app_id" schema:"app_id"`
}

func (*ListScopes) Validation added in v1.0.0

func (ls *ListScopes) Validation() bool

type MailRegister

type MailRegister struct {
	Mail     string `json:"mail"`
	Name     string `json:"name"`
	Password string `json:"password"`
}

func (*MailRegister) Validation

func (mr *MailRegister) Validation() bool

type OAuthAuthorize added in v1.0.0

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 added in v1.0.0

func (auth *OAuthAuthorize) Validation() bool

type OAuthClientStatus added in v1.0.0

type OAuthClientStatus struct {
	Key    string `json:"key"`
	Status string `json:"status"`
}

func (*OAuthClientStatus) Validation added in v1.0.0

func (ocs *OAuthClientStatus) Validation() bool

type OAuthCreateClient added in v1.0.0

type OAuthCreateClient struct {
	Key         string `json:"key"`
	Secret      string `json:"secret"`
	RedirectURI string `json:"redirect_uri"`
}

func (*OAuthCreateClient) Validation added in v1.0.0

func (occ *OAuthCreateClient) Validation() bool

type OAuthTokens added in v1.0.0

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 added in v1.0.0

func (token *OAuthTokens) ValidateAuthorizationCode() bool

func (*OAuthTokens) ValidateClientCredentials added in v1.0.0

func (token *OAuthTokens) ValidateClientCredentials() bool

func (*OAuthTokens) ValidatePasswordGrant added in v1.0.0

func (token *OAuthTokens) ValidatePasswordGrant() bool

func (*OAuthTokens) ValidateRefreshToken added in v1.0.0

func (token *OAuthTokens) ValidateRefreshToken() bool

func (*OAuthTokens) Validation added in v1.0.0

func (token *OAuthTokens) Validation() bool

type PasswordLogin added in v1.0.0

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 added in v1.0.0

func (ml *PasswordLogin) Validation() bool

type PlutoRequest

type PlutoRequest interface {
	Validation() bool
}

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

type RegisterVerifyMail struct {
	Mail string `json:"mail"`
}

func (*RegisterVerifyMail) Validation

func (rvm *RegisterVerifyMail) Validation() bool

type ResetPasswordMail

type ResetPasswordMail struct {
	Mail string `json:"mail"`
}

func (*ResetPasswordMail) Validation

func (rpm *ResetPasswordMail) Validation() bool

type ResetPasswordWeb added in v0.4.0

type ResetPasswordWeb struct {
	Password string `json:"password" schema:"password"`
}

func (*ResetPasswordWeb) Validation added in v0.4.0

func (rp *ResetPasswordWeb) Validation() bool

type RoleScope added in v0.4.0

type RoleScope struct {
	RoleID  uint `json:"role_id"`
	ScopeID uint `json:"scope_id"`
}

func (*RoleScope) Validation added in v0.4.0

func (rs *RoleScope) Validation() bool

type RoleScopeUpdate added in v1.0.0

type RoleScopeUpdate struct {
	RoleID uint   `json:"role_id"`
	Scopes []uint `json:"scopes"`
}

func (*RoleScopeUpdate) Validation added in v1.0.0

func (rscu *RoleScopeUpdate) Validation() bool

type UnBinding added in v1.0.0

type UnBinding struct {
	Type string `json:"type"`
}

func (*UnBinding) Validation added in v1.0.0

func (ub *UnBinding) Validation() bool

type UpdateUserInfo

type UpdateUserInfo struct {
	Name   string `json:"name"`
	Avatar string `json:"avatar"`
}

func (*UpdateUserInfo) Validation

func (uui *UpdateUserInfo) Validation() bool

type UserRole added in v0.4.0

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 added in v1.0.0

func (ur *UserRole) Validation() bool

type VerifyAccessToken added in v1.0.0

type VerifyAccessToken struct {
	Token string `json:"token"`
}

func (*VerifyAccessToken) Validation added in v1.0.0

func (vat *VerifyAccessToken) Validation() bool

type VerifyIDToken added in v1.0.0

type VerifyIDToken struct {
	Token string `json:"token"`
}

func (*VerifyIDToken) Validation added in v1.0.0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL