request

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 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"`
	Name     string `json:"name"`
}

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"`
}

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 {
	Keyword string `json:"keyword"`
}

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,required"`
}

type ListScopes added in v0.4.0

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

type MailLogin

type MailLogin struct {
	Mail     string `json:"mail"`
	Password string `json:"password"`
	DeviceID string `json:"device_id"`
	AppID    string `json:"app_id"`
}

func (*MailLogin) Validation

func (ml *MailLogin) 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 PlutoRequest

type PlutoRequest interface {
	Validation() bool
}

type RefreshAccessToken

type RefreshAccessToken struct {
	RefreshToken string `json:"refresh_token"`
	UseID        uint   `json:"user_id"`
	DeviceID     string `json:"device_id"`
	AppID        string `json:"app_id"`
}

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,required"`
}

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 RoleScopeBatchUpdate added in v0.4.0

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

func (*RoleScopeBatchUpdate) Validation added in v0.4.0

func (rscu *RoleScopeBatchUpdate) 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,required"`
	AppID  uint `json:"app_id" schema:"app_id,required"`
	RoleID uint `json:"role_id" schema:"role_id,required"`
}

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