request

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 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

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

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

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

func (binding *Binding) Validation() bool

type CreateApplication

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

func (*CreateApplication) Validation

func (ca *CreateApplication) Validation() bool

type CreateRole

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

func (*CreateRole) Validation

func (cr *CreateRole) Validation() bool

type CreateScope

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

func (*CreateScope) Validation

func (cs *CreateScope) Validation() bool

type FindUser

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

func (*FindUser) Validation

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

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

func (*ListRoles) Validation

func (lr *ListRoles) Validation() bool

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

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

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

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

func (*RegisterVerifyMail) Validation

func (rvm *RegisterVerifyMail) Validation() bool

type ResetPasswordMail

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

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

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

func (*RoleScope) Validation

func (rs *RoleScope) Validation() bool

type RoleScopeUpdate

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

func (*RoleScopeUpdate) Validation

func (rscu *RoleScopeUpdate) Validation() bool

type UnBinding

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

func (*UnBinding) Validation

func (ub *UnBinding) 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

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

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

func (ur *UserRole) Validation() bool

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

Jump to

Keyboard shortcuts

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