Documentation
¶
Index ¶
- type AppleMobileLogin
- type ApplicationRole
- type CreateApplication
- type CreateRole
- type CreateScope
- type FindUser
- type GoogleMobileLogin
- type ListRoles
- type ListScopes
- type MailLogin
- type MailRegister
- type PlutoRequest
- type RefreshAccessToken
- type RegisterVerifyMail
- type ResetPasswordMail
- type ResetPasswordWeb
- type RoleScope
- type RoleScopeBatchUpdate
- type UpdateUserInfo
- type UserRole
- type WechatMobileLogin
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 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
func (*CreateRole) Validation ¶ added in v0.4.0
func (cr *CreateRole) Validation() bool
type CreateScope ¶ added in v0.4.0
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
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 ¶
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
func (*RoleScope) Validation ¶ added in v0.4.0
type RoleScopeBatchUpdate ¶ added in v0.4.0
func (*RoleScopeBatchUpdate) Validation ¶ added in v0.4.0
func (rscu *RoleScopeBatchUpdate) Validation() bool
type UpdateUserInfo ¶
func (*UpdateUserInfo) Validation ¶
func (uui *UpdateUserInfo) 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.