Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorCallIdentifyInterfaceFailed(format string, args ...interface{}) *errors.Error
- func ErrorEmailError(format string, args ...interface{}) *errors.Error
- func ErrorEmailFormatIsCorrect(format string, args ...interface{}) *errors.Error
- func ErrorGetPlatformNodeErr(format string, args ...interface{}) *errors.Error
- func ErrorGetServersNodeErr(format string, args ...interface{}) *errors.Error
- func ErrorIdCardHasBindToAnother(format string, args ...interface{}) *errors.Error
- func ErrorInconsistentIdentityVerification(format string, args ...interface{}) *errors.Error
- func ErrorInputPhoneNotIsUserBindingPhone(format string, args ...interface{}) *errors.Error
- func ErrorMailBindingError(format string, args ...interface{}) *errors.Error
- func ErrorNoAvailableServers(format string, args ...interface{}) *errors.Error
- func ErrorPasswordIsEmpty(format string, args ...interface{}) *errors.Error
- func ErrorPhoneBindingError(format string, args ...interface{}) *errors.Error
- func ErrorPhoneError(format string, args ...interface{}) *errors.Error
- func ErrorRealNameFailed(format string, args ...interface{}) *errors.Error
- func ErrorReasonAuthorizationCodeError(format string, args ...interface{}) *errors.Error
- func ErrorReasonCodeIsInvalid(format string, args ...interface{}) *errors.Error
- func ErrorReasonCodeType(format string, args ...interface{}) *errors.Error
- func ErrorReasonGenerateTokenError(format string, args ...interface{}) *errors.Error
- func ErrorReasonLoginStatus(format string, args ...interface{}) *errors.Error
- func ErrorReasonNameOrPassword(format string, args ...interface{}) *errors.Error
- func ErrorReasonParams(format string, args ...interface{}) *errors.Error
- func ErrorReasonSystem(format string, args ...interface{}) *errors.Error
- func ErrorReasonTokenDestruction(format string, args ...interface{}) *errors.Error
- func ErrorReasonTokenHasExpired(format string, args ...interface{}) *errors.Error
- func ErrorReasonTokenRefresh(format string, args ...interface{}) *errors.Error
- func ErrorReasonTokenVerify(format string, args ...interface{}) *errors.Error
- func ErrorReasonTokenVerifyError(format string, args ...interface{}) *errors.Error
- func ErrorReasonVerifyCodeError(format string, args ...interface{}) *errors.Error
- func ErrorRegisterAccountError(format string, args ...interface{}) *errors.Error
- func ErrorSendCodeError(format string, args ...interface{}) *errors.Error
- func ErrorSyncUserInfoErr(format string, args ...interface{}) *errors.Error
- func ErrorTheEmailHasBeenBound(format string, args ...interface{}) *errors.Error
- func ErrorThisShareCodeIsInvalid(format string, args ...interface{}) *errors.Error
- func ErrorUnsupportedPlatforms(format string, args ...interface{}) *errors.Error
- func ErrorUnsupportedVerificationType(format string, args ...interface{}) *errors.Error
- func ErrorUpdateAccountPasswordError(format string, args ...interface{}) *errors.Error
- func ErrorUserDisableLogin(format string, args ...interface{}) *errors.Error
- func ErrorUserHadRealNamed(format string, args ...interface{}) *errors.Error
- func ErrorUserNotFond(format string, args ...interface{}) *errors.Error
- func ErrorUserNotJoinNode(format string, args ...interface{}) *errors.Error
- func ErrorVerificationCodeHasExpired(format string, args ...interface{}) *errors.Error
- func IsCallIdentifyInterfaceFailed(err error) bool
- func IsEmailError(err error) bool
- func IsEmailFormatIsCorrect(err error) bool
- func IsGetPlatformNodeErr(err error) bool
- func IsGetServersNodeErr(err error) bool
- func IsIdCardHasBindToAnother(err error) bool
- func IsInconsistentIdentityVerification(err error) bool
- func IsInputPhoneNotIsUserBindingPhone(err error) bool
- func IsMailBindingError(err error) bool
- func IsNoAvailableServers(err error) bool
- func IsPasswordIsEmpty(err error) bool
- func IsPhoneBindingError(err error) bool
- func IsPhoneError(err error) bool
- func IsRealNameFailed(err error) bool
- func IsReasonAuthorizationCodeError(err error) bool
- func IsReasonCodeIsInvalid(err error) bool
- func IsReasonCodeType(err error) bool
- func IsReasonGenerateTokenError(err error) bool
- func IsReasonLoginStatus(err error) bool
- func IsReasonNameOrPassword(err error) bool
- func IsReasonParams(err error) bool
- func IsReasonSystem(err error) bool
- func IsReasonTokenDestruction(err error) bool
- func IsReasonTokenHasExpired(err error) bool
- func IsReasonTokenRefresh(err error) bool
- func IsReasonTokenVerify(err error) bool
- func IsReasonTokenVerifyError(err error) bool
- func IsReasonVerifyCodeError(err error) bool
- func IsRegisterAccountError(err error) bool
- func IsSendCodeError(err error) bool
- func IsSyncUserInfoErr(err error) bool
- func IsTheEmailHasBeenBound(err error) bool
- func IsThisShareCodeIsInvalid(err error) bool
- func IsUnsupportedPlatforms(err error) bool
- func IsUnsupportedVerificationType(err error) bool
- func IsUpdateAccountPasswordError(err error) bool
- func IsUserDisableLogin(err error) bool
- func IsUserHadRealNamed(err error) bool
- func IsUserNotFond(err error) bool
- func IsUserNotJoinNode(err error) bool
- func IsVerificationCodeHasExpired(err error) bool
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- type AccountType
- func (AccountType) Descriptor() protoreflect.EnumDescriptor
- func (x AccountType) Enum() *AccountType
- func (AccountType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountType) Number() protoreflect.EnumNumber
- func (x AccountType) String() string
- func (AccountType) Type() protoreflect.EnumType
- type AuthClient
- type AuthServer
- type AuthToken
- func (*AuthToken) Descriptor() ([]byte, []int)deprecated
- func (x *AuthToken) GetAccessToken() string
- func (x *AuthToken) GetExpiresAt() int64
- func (x *AuthToken) GetOptions() map[string]string
- func (x *AuthToken) GetRefExpiresAt() int64
- func (x *AuthToken) GetRefreshToken() string
- func (x *AuthToken) GetServerCode() string
- func (x *AuthToken) GetUserId() string
- func (*AuthToken) ProtoMessage()
- func (x *AuthToken) ProtoReflect() protoreflect.Message
- func (x *AuthToken) Reset()
- func (x *AuthToken) String() string
- func (m *AuthToken) Validate() error
- func (m *AuthToken) ValidateAll() error
- type AuthTokenMultiError
- type AuthTokenValidationError
- type AuthorizeType
- func (AuthorizeType) Descriptor() protoreflect.EnumDescriptor
- func (x AuthorizeType) Enum() *AuthorizeType
- func (AuthorizeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthorizeType) Number() protoreflect.EnumNumber
- func (x AuthorizeType) String() string
- func (AuthorizeType) Type() protoreflect.EnumType
- type BindingReply
- func (*BindingReply) Descriptor() ([]byte, []int)deprecated
- func (*BindingReply) ProtoMessage()
- func (x *BindingReply) ProtoReflect() protoreflect.Message
- func (x *BindingReply) Reset()
- func (x *BindingReply) String() string
- func (m *BindingReply) Validate() error
- func (m *BindingReply) ValidateAll() error
- type BindingReplyMultiError
- type BindingReplyValidationError
- func (e BindingReplyValidationError) Cause() error
- func (e BindingReplyValidationError) Error() string
- func (e BindingReplyValidationError) ErrorName() string
- func (e BindingReplyValidationError) Field() string
- func (e BindingReplyValidationError) Key() bool
- func (e BindingReplyValidationError) Reason() string
- type BindingReq
- func (*BindingReq) Descriptor() ([]byte, []int)deprecated
- func (x *BindingReq) GetAccount() string
- func (x *BindingReq) GetAreaCode() int64
- func (x *BindingReq) GetCode() string
- func (x *BindingReq) GetCodeType() CodeType
- func (x *BindingReq) GetId() string
- func (x *BindingReq) GetKey() string
- func (*BindingReq) ProtoMessage()
- func (x *BindingReq) ProtoReflect() protoreflect.Message
- func (x *BindingReq) Reset()
- func (x *BindingReq) String() string
- func (m *BindingReq) Validate() error
- func (m *BindingReq) ValidateAll() error
- type BindingReqMultiError
- type BindingReqValidationError
- type CodeType
- type DestructionTokenReply
- func (*DestructionTokenReply) Descriptor() ([]byte, []int)deprecated
- func (*DestructionTokenReply) ProtoMessage()
- func (x *DestructionTokenReply) ProtoReflect() protoreflect.Message
- func (x *DestructionTokenReply) Reset()
- func (x *DestructionTokenReply) String() string
- func (m *DestructionTokenReply) Validate() error
- func (m *DestructionTokenReply) ValidateAll() error
- type DestructionTokenReplyMultiError
- type DestructionTokenReplyValidationError
- func (e DestructionTokenReplyValidationError) Cause() error
- func (e DestructionTokenReplyValidationError) Error() string
- func (e DestructionTokenReplyValidationError) ErrorName() string
- func (e DestructionTokenReplyValidationError) Field() string
- func (e DestructionTokenReplyValidationError) Key() bool
- func (e DestructionTokenReplyValidationError) Reason() string
- type DestructionTokenReq
- func (*DestructionTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *DestructionTokenReq) GetAccessToken() string
- func (*DestructionTokenReq) ProtoMessage()
- func (x *DestructionTokenReq) ProtoReflect() protoreflect.Message
- func (x *DestructionTokenReq) Reset()
- func (x *DestructionTokenReq) String() string
- func (m *DestructionTokenReq) Validate() error
- func (m *DestructionTokenReq) ValidateAll() error
- type DestructionTokenReqMultiError
- type DestructionTokenReqValidationError
- func (e DestructionTokenReqValidationError) Cause() error
- func (e DestructionTokenReqValidationError) Error() string
- func (e DestructionTokenReqValidationError) ErrorName() string
- func (e DestructionTokenReqValidationError) Field() string
- func (e DestructionTokenReqValidationError) Key() bool
- func (e DestructionTokenReqValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type LoginReply
- func (*LoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReply) GetAuthToken() *AuthToken
- func (x *LoginReply) GetAuthorizationCode() string
- func (x *LoginReply) GetManagers() []string
- func (x *LoginReply) GetNode() *v21.NodeBase
- func (*LoginReply) ProtoMessage()
- func (x *LoginReply) ProtoReflect() protoreflect.Message
- func (x *LoginReply) Reset()
- func (x *LoginReply) String() string
- func (m *LoginReply) Validate() error
- func (m *LoginReply) ValidateAll() error
- type LoginReplyMultiError
- type LoginReplyValidationError
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReq) GetAccount() string
- func (x *LoginReq) GetAccountType() AccountType
- func (x *LoginReq) GetKey() string
- func (x *LoginReq) GetNode() string
- func (x *LoginReq) GetPlatform() string
- func (x *LoginReq) GetProof() string
- func (x *LoginReq) GetResNodeInfo() bool
- func (x *LoginReq) GetResponseType() AuthorizeType
- func (x *LoginReq) GetScope() []string
- func (*LoginReq) ProtoMessage()
- func (x *LoginReq) ProtoReflect() protoreflect.Message
- func (x *LoginReq) Reset()
- func (x *LoginReq) String() string
- func (m *LoginReq) Validate() error
- func (m *LoginReq) ValidateAll() error
- type LoginReqMultiError
- type LoginReqValidationError
- type RealNameAuthReply
- func (*RealNameAuthReply) Descriptor() ([]byte, []int)deprecated
- func (*RealNameAuthReply) ProtoMessage()
- func (x *RealNameAuthReply) ProtoReflect() protoreflect.Message
- func (x *RealNameAuthReply) Reset()
- func (x *RealNameAuthReply) String() string
- func (m *RealNameAuthReply) Validate() error
- func (m *RealNameAuthReply) ValidateAll() error
- type RealNameAuthReplyMultiError
- type RealNameAuthReplyValidationError
- func (e RealNameAuthReplyValidationError) Cause() error
- func (e RealNameAuthReplyValidationError) Error() string
- func (e RealNameAuthReplyValidationError) ErrorName() string
- func (e RealNameAuthReplyValidationError) Field() string
- func (e RealNameAuthReplyValidationError) Key() bool
- func (e RealNameAuthReplyValidationError) Reason() string
- type RealNameAuthReq
- func (*RealNameAuthReq) Descriptor() ([]byte, []int)deprecated
- func (x *RealNameAuthReq) GetFullName() string
- func (x *RealNameAuthReq) GetPersonId() string
- func (x *RealNameAuthReq) GetRealPhone() string
- func (x *RealNameAuthReq) GetUserId() string
- func (*RealNameAuthReq) ProtoMessage()
- func (x *RealNameAuthReq) ProtoReflect() protoreflect.Message
- func (x *RealNameAuthReq) Reset()
- func (x *RealNameAuthReq) String() string
- func (m *RealNameAuthReq) Validate() error
- func (m *RealNameAuthReq) ValidateAll() error
- type RealNameAuthReqMultiError
- type RealNameAuthReqValidationError
- func (e RealNameAuthReqValidationError) Cause() error
- func (e RealNameAuthReqValidationError) Error() string
- func (e RealNameAuthReqValidationError) ErrorName() string
- func (e RealNameAuthReqValidationError) Field() string
- func (e RealNameAuthReqValidationError) Key() bool
- func (e RealNameAuthReqValidationError) Reason() string
- type RefTokenReply
- func (*RefTokenReply) Descriptor() ([]byte, []int)deprecated
- func (x *RefTokenReply) GetAuthToken() *AuthToken
- func (x *RefTokenReply) GetManagers() []string
- func (x *RefTokenReply) GetNode() *v21.NodeBase
- func (*RefTokenReply) ProtoMessage()
- func (x *RefTokenReply) ProtoReflect() protoreflect.Message
- func (x *RefTokenReply) Reset()
- func (x *RefTokenReply) String() string
- func (m *RefTokenReply) Validate() error
- func (m *RefTokenReply) ValidateAll() error
- type RefTokenReplyMultiError
- type RefTokenReplyValidationError
- func (e RefTokenReplyValidationError) Cause() error
- func (e RefTokenReplyValidationError) Error() string
- func (e RefTokenReplyValidationError) ErrorName() string
- func (e RefTokenReplyValidationError) Field() string
- func (e RefTokenReplyValidationError) Key() bool
- func (e RefTokenReplyValidationError) Reason() string
- type RefTokenReq
- func (*RefTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *RefTokenReq) GetNode() string
- func (x *RefTokenReq) GetRefToken() string
- func (x *RefTokenReq) GetResNodeInfo() bool
- func (*RefTokenReq) ProtoMessage()
- func (x *RefTokenReq) ProtoReflect() protoreflect.Message
- func (x *RefTokenReq) Reset()
- func (x *RefTokenReq) String() string
- func (m *RefTokenReq) Validate() error
- func (m *RefTokenReq) ValidateAll() error
- type RefTokenReqMultiError
- type RefTokenReqValidationError
- func (e RefTokenReqValidationError) Cause() error
- func (e RefTokenReqValidationError) Error() string
- func (e RefTokenReqValidationError) ErrorName() string
- func (e RefTokenReqValidationError) Field() string
- func (e RefTokenReqValidationError) Key() bool
- func (e RefTokenReqValidationError) Reason() string
- type RegisterReply
- func (*RegisterReply) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterReply) GetUserId() string
- func (*RegisterReply) ProtoMessage()
- func (x *RegisterReply) ProtoReflect() protoreflect.Message
- func (x *RegisterReply) Reset()
- func (x *RegisterReply) String() string
- func (m *RegisterReply) Validate() error
- func (m *RegisterReply) ValidateAll() error
- type RegisterReplyMultiError
- type RegisterReplyValidationError
- func (e RegisterReplyValidationError) Cause() error
- func (e RegisterReplyValidationError) Error() string
- func (e RegisterReplyValidationError) ErrorName() string
- func (e RegisterReplyValidationError) Field() string
- func (e RegisterReplyValidationError) Key() bool
- func (e RegisterReplyValidationError) Reason() string
- type RegisterReq
- func (*RegisterReq) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterReq) GetAccount() string
- func (x *RegisterReq) GetAreaCode() int32
- func (x *RegisterReq) GetBirth() int64
- func (x *RegisterReq) GetFaceURL() string
- func (x *RegisterReq) GetGender() v2.Gender
- func (x *RegisterReq) GetKey() string
- func (x *RegisterReq) GetNickname() string
- func (x *RegisterReq) GetPassword() string
- func (x *RegisterReq) GetPlatform() string
- func (x *RegisterReq) GetProof() string
- func (x *RegisterReq) GetRegisterType() RegisterType
- func (x *RegisterReq) GetShareCode() string
- func (*RegisterReq) ProtoMessage()
- func (x *RegisterReq) ProtoReflect() protoreflect.Message
- func (x *RegisterReq) Reset()
- func (x *RegisterReq) String() string
- func (m *RegisterReq) Validate() error
- func (m *RegisterReq) ValidateAll() error
- type RegisterReqMultiError
- type RegisterReqValidationError
- func (e RegisterReqValidationError) Cause() error
- func (e RegisterReqValidationError) Error() string
- func (e RegisterReqValidationError) ErrorName() string
- func (e RegisterReqValidationError) Field() string
- func (e RegisterReqValidationError) Key() bool
- func (e RegisterReqValidationError) Reason() string
- type RegisterType
- func (RegisterType) Descriptor() protoreflect.EnumDescriptor
- func (x RegisterType) Enum() *RegisterType
- func (RegisterType) EnumDescriptor() ([]byte, []int)deprecated
- func (x RegisterType) Number() protoreflect.EnumNumber
- func (x RegisterType) String() string
- func (RegisterType) Type() protoreflect.EnumType
- type SSOLoginReply
- func (*SSOLoginReply) Descriptor() ([]byte, []int)deprecated
- func (x *SSOLoginReply) GetAuthToken() *AuthToken
- func (*SSOLoginReply) ProtoMessage()
- func (x *SSOLoginReply) ProtoReflect() protoreflect.Message
- func (x *SSOLoginReply) Reset()
- func (x *SSOLoginReply) String() string
- func (m *SSOLoginReply) Validate() error
- func (m *SSOLoginReply) ValidateAll() error
- type SSOLoginReplyMultiError
- type SSOLoginReplyValidationError
- func (e SSOLoginReplyValidationError) Cause() error
- func (e SSOLoginReplyValidationError) Error() string
- func (e SSOLoginReplyValidationError) ErrorName() string
- func (e SSOLoginReplyValidationError) Field() string
- func (e SSOLoginReplyValidationError) Key() bool
- func (e SSOLoginReplyValidationError) Reason() string
- type SSOLoginReq
- func (*SSOLoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *SSOLoginReq) GetAccount() string
- func (x *SSOLoginReq) GetPlatform() string
- func (x *SSOLoginReq) GetToken() string
- func (*SSOLoginReq) ProtoMessage()
- func (x *SSOLoginReq) ProtoReflect() protoreflect.Message
- func (x *SSOLoginReq) Reset()
- func (x *SSOLoginReq) String() string
- func (m *SSOLoginReq) Validate() error
- func (m *SSOLoginReq) ValidateAll() error
- type SSOLoginReqMultiError
- type SSOLoginReqValidationError
- func (e SSOLoginReqValidationError) Cause() error
- func (e SSOLoginReqValidationError) Error() string
- func (e SSOLoginReqValidationError) ErrorName() string
- func (e SSOLoginReqValidationError) Field() string
- func (e SSOLoginReqValidationError) Key() bool
- func (e SSOLoginReqValidationError) Reason() string
- type SendCodeReply
- func (*SendCodeReply) Descriptor() ([]byte, []int)deprecated
- func (x *SendCodeReply) GetExpiresAt() int64
- func (x *SendCodeReply) GetKey() string
- func (x *SendCodeReply) GetSeconds() int64
- func (*SendCodeReply) ProtoMessage()
- func (x *SendCodeReply) ProtoReflect() protoreflect.Message
- func (x *SendCodeReply) Reset()
- func (x *SendCodeReply) String() string
- func (m *SendCodeReply) Validate() error
- func (m *SendCodeReply) ValidateAll() error
- type SendCodeReplyMultiError
- type SendCodeReplyValidationError
- func (e SendCodeReplyValidationError) Cause() error
- func (e SendCodeReplyValidationError) Error() string
- func (e SendCodeReplyValidationError) ErrorName() string
- func (e SendCodeReplyValidationError) Field() string
- func (e SendCodeReplyValidationError) Key() bool
- func (e SendCodeReplyValidationError) Reason() string
- type SendCodeReq
- func (*SendCodeReq) Descriptor() ([]byte, []int)deprecated
- func (x *SendCodeReq) GetAccount() string
- func (x *SendCodeReq) GetAreaCode() int64
- func (x *SendCodeReq) GetCodeType() CodeType
- func (*SendCodeReq) ProtoMessage()
- func (x *SendCodeReq) ProtoReflect() protoreflect.Message
- func (x *SendCodeReq) Reset()
- func (x *SendCodeReq) String() string
- func (m *SendCodeReq) Validate() error
- func (m *SendCodeReq) ValidateAll() error
- type SendCodeReqMultiError
- type SendCodeReqValidationError
- func (e SendCodeReqValidationError) Cause() error
- func (e SendCodeReqValidationError) Error() string
- func (e SendCodeReqValidationError) ErrorName() string
- func (e SendCodeReqValidationError) Field() string
- func (e SendCodeReqValidationError) Key() bool
- func (e SendCodeReqValidationError) Reason() string
- type UnimplementedAuthServer
- func (UnimplementedAuthServer) Binding(context.Context, *BindingReq) (*BindingReply, error)
- func (UnimplementedAuthServer) DestructionToken(context.Context, *DestructionTokenReq) (*DestructionTokenReply, error)
- func (UnimplementedAuthServer) Login(context.Context, *LoginReq) (*LoginReply, error)
- func (UnimplementedAuthServer) RealNameAuth(context.Context, *RealNameAuthReq) (*RealNameAuthReply, error)
- func (UnimplementedAuthServer) RefToken(context.Context, *RefTokenReq) (*RefTokenReply, error)
- func (UnimplementedAuthServer) Register(context.Context, *RegisterReq) (*RegisterReply, error)
- func (UnimplementedAuthServer) SendCode(context.Context, *SendCodeReq) (*SendCodeReply, error)
- func (UnimplementedAuthServer) UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordReply, error)
- func (UnimplementedAuthServer) VerifyCode(context.Context, *VerifyCodeReq) (*VerifyCodeReply, error)
- func (UnimplementedAuthServer) VerifyToken(context.Context, *VerifyTokenReq) (*VerifyTokenReply, error)
- type UnsafeAuthServer
- type UpdatePasswordReply
- func (*UpdatePasswordReply) Descriptor() ([]byte, []int)deprecated
- func (*UpdatePasswordReply) ProtoMessage()
- func (x *UpdatePasswordReply) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordReply) Reset()
- func (x *UpdatePasswordReply) String() string
- func (m *UpdatePasswordReply) Validate() error
- func (m *UpdatePasswordReply) ValidateAll() error
- type UpdatePasswordReplyMultiError
- type UpdatePasswordReplyValidationError
- func (e UpdatePasswordReplyValidationError) Cause() error
- func (e UpdatePasswordReplyValidationError) Error() string
- func (e UpdatePasswordReplyValidationError) ErrorName() string
- func (e UpdatePasswordReplyValidationError) Field() string
- func (e UpdatePasswordReplyValidationError) Key() bool
- func (e UpdatePasswordReplyValidationError) Reason() string
- type UpdatePasswordReq
- func (*UpdatePasswordReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordReq) GetAccount() string
- func (x *UpdatePasswordReq) GetCodeType() CodeType
- func (x *UpdatePasswordReq) GetKey() string
- func (x *UpdatePasswordReq) GetNodeId() string
- func (x *UpdatePasswordReq) GetPassword() string
- func (x *UpdatePasswordReq) GetProof() string
- func (x *UpdatePasswordReq) GetUserId() string
- func (*UpdatePasswordReq) ProtoMessage()
- func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordReq) Reset()
- func (x *UpdatePasswordReq) String() string
- func (m *UpdatePasswordReq) Validate() error
- func (m *UpdatePasswordReq) ValidateAll() error
- type UpdatePasswordReqMultiError
- type UpdatePasswordReqValidationError
- func (e UpdatePasswordReqValidationError) Cause() error
- func (e UpdatePasswordReqValidationError) Error() string
- func (e UpdatePasswordReqValidationError) ErrorName() string
- func (e UpdatePasswordReqValidationError) Field() string
- func (e UpdatePasswordReqValidationError) Key() bool
- func (e UpdatePasswordReqValidationError) Reason() string
- type VerifyCodeReply
- func (*VerifyCodeReply) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyCodeReply) GetPass() bool
- func (*VerifyCodeReply) ProtoMessage()
- func (x *VerifyCodeReply) ProtoReflect() protoreflect.Message
- func (x *VerifyCodeReply) Reset()
- func (x *VerifyCodeReply) String() string
- func (m *VerifyCodeReply) Validate() error
- func (m *VerifyCodeReply) ValidateAll() error
- type VerifyCodeReplyMultiError
- type VerifyCodeReplyValidationError
- func (e VerifyCodeReplyValidationError) Cause() error
- func (e VerifyCodeReplyValidationError) Error() string
- func (e VerifyCodeReplyValidationError) ErrorName() string
- func (e VerifyCodeReplyValidationError) Field() string
- func (e VerifyCodeReplyValidationError) Key() bool
- func (e VerifyCodeReplyValidationError) Reason() string
- type VerifyCodeReq
- func (*VerifyCodeReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyCodeReq) GetAccount() string
- func (x *VerifyCodeReq) GetCode() string
- func (x *VerifyCodeReq) GetCodeType() CodeType
- func (x *VerifyCodeReq) GetKey() string
- func (*VerifyCodeReq) ProtoMessage()
- func (x *VerifyCodeReq) ProtoReflect() protoreflect.Message
- func (x *VerifyCodeReq) Reset()
- func (x *VerifyCodeReq) String() string
- func (m *VerifyCodeReq) Validate() error
- func (m *VerifyCodeReq) ValidateAll() error
- type VerifyCodeReqMultiError
- type VerifyCodeReqValidationError
- func (e VerifyCodeReqValidationError) Cause() error
- func (e VerifyCodeReqValidationError) Error() string
- func (e VerifyCodeReqValidationError) ErrorName() string
- func (e VerifyCodeReqValidationError) Field() string
- func (e VerifyCodeReqValidationError) Key() bool
- func (e VerifyCodeReqValidationError) Reason() string
- type VerifyTokenReply
- func (*VerifyTokenReply) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyTokenReply) GetAuthToken() *AuthToken
- func (*VerifyTokenReply) ProtoMessage()
- func (x *VerifyTokenReply) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenReply) Reset()
- func (x *VerifyTokenReply) String() string
- func (m *VerifyTokenReply) Validate() error
- func (m *VerifyTokenReply) ValidateAll() error
- type VerifyTokenReplyMultiError
- type VerifyTokenReplyValidationError
- func (e VerifyTokenReplyValidationError) Cause() error
- func (e VerifyTokenReplyValidationError) Error() string
- func (e VerifyTokenReplyValidationError) ErrorName() string
- func (e VerifyTokenReplyValidationError) Field() string
- func (e VerifyTokenReplyValidationError) Key() bool
- func (e VerifyTokenReplyValidationError) Reason() string
- type VerifyTokenReq
- func (*VerifyTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *VerifyTokenReq) GetAccessToken() string
- func (x *VerifyTokenReq) GetAuthorizeType() AuthorizeType
- func (*VerifyTokenReq) ProtoMessage()
- func (x *VerifyTokenReq) ProtoReflect() protoreflect.Message
- func (x *VerifyTokenReq) Reset()
- func (x *VerifyTokenReq) String() string
- func (m *VerifyTokenReq) Validate() error
- func (m *VerifyTokenReq) ValidateAll() error
- type VerifyTokenReqMultiError
- type VerifyTokenReqValidationError
- func (e VerifyTokenReqValidationError) Cause() error
- func (e VerifyTokenReqValidationError) Error() string
- func (e VerifyTokenReqValidationError) ErrorName() string
- func (e VerifyTokenReqValidationError) Field() string
- func (e VerifyTokenReqValidationError) Key() bool
- func (e VerifyTokenReqValidationError) Reason() string
Constants ¶
const ( Auth_Register_FullMethodName = "/api.user_center.auth.v2.Auth/Register" Auth_Login_FullMethodName = "/api.user_center.auth.v2.Auth/Login" Auth_RefToken_FullMethodName = "/api.user_center.auth.v2.Auth/RefToken" Auth_VerifyToken_FullMethodName = "/api.user_center.auth.v2.Auth/VerifyToken" Auth_DestructionToken_FullMethodName = "/api.user_center.auth.v2.Auth/DestructionToken" Auth_SendCode_FullMethodName = "/api.user_center.auth.v2.Auth/SendCode" Auth_VerifyCode_FullMethodName = "/api.user_center.auth.v2.Auth/VerifyCode" Auth_UpdatePassword_FullMethodName = "/api.user_center.auth.v2.Auth/UpdatePassword" Auth_RealNameAuth_FullMethodName = "/api.user_center.auth.v2.Auth/RealNameAuth" Auth_Binding_FullMethodName = "/api.user_center.auth.v2.Auth/Binding" )
Variables ¶
var ( RegisterType_name = map[int32]string{ 0: "REGISTER_TYPE_PHONE", 1: "REGISTER_TYPE_EMAIL", 2: "REGISTER_TYPE_USER", } RegisterType_value = map[string]int32{ "REGISTER_TYPE_PHONE": 0, "REGISTER_TYPE_EMAIL": 1, "REGISTER_TYPE_USER": 2, } )
Enum value maps for RegisterType.
var ( AccountType_name = map[int32]string{ 0: "ACCOUNT_TYPE_USER_PASSWORD", 1: "ACCOUNT_TYPE_PHONE_CODE", 2: "ACCOUNT_TYPE_PHONE_PASSWORD", 3: "ACCOUNT_TYPE_EMAIL_CODE", 4: "ACCOUNT_TYPE_EMAIL_PASSWORD", } AccountType_value = map[string]int32{ "ACCOUNT_TYPE_USER_PASSWORD": 0, "ACCOUNT_TYPE_PHONE_CODE": 1, "ACCOUNT_TYPE_PHONE_PASSWORD": 2, "ACCOUNT_TYPE_EMAIL_CODE": 3, "ACCOUNT_TYPE_EMAIL_PASSWORD": 4, } )
Enum value maps for AccountType.
var ( CodeType_name = map[int32]string{ 0: "CODE_TYPE_PHONE", 1: "CODE_TYPE_EMAIL", } CodeType_value = map[string]int32{ "CODE_TYPE_PHONE": 0, "CODE_TYPE_EMAIL": 1, } )
Enum value maps for CodeType.
var ( AuthorizeType_name = map[int32]string{ 0: "AUTHORIZE_CODE", 1: "AUTHORIZE_TOKEN", } AuthorizeType_value = map[string]int32{ "AUTHORIZE_CODE": 0, "AUTHORIZE_TOKEN": 1, } )
Enum value maps for AuthorizeType.
var ( ErrorReason_name = map[int32]string{ 0: "REASON_PARAMS", 1: "REASON_SYSTEM", 2: "REASON_NAME_OR_PASSWORD", 3: "REASON_CODE_IS_INVALID", 4: "REASON_LOGIN_STATUS", 5: "REASON_TOKEN_VERIFY", 6: "REASON_TOKEN_REFRESH", 7: "REASON_CODE_TYPE", 8: "REASON_VERIFY_CODE_ERROR", 9: "USER_DISABLE_LOGIN", 10: "VERIFICATION_CODE_HAS_EXPIRED", 11: "REGISTER_ACCOUNT_ERROR", 12: "UPDATE_ACCOUNT_PASSWORD_ERROR", 13: "USER_NOT_FOND", 14: "PASSWORD_IS_EMPTY", 15: "USER_HAD_REAL_NAMED", 16: "ID_CARD_HAS_BIND_TO_ANOTHER", 17: "REAL_NAME_FAILED", 18: "CALL_IDENTIFY_INTERFACE_FAILED", 19: "INPUT_PHONE_NOT_IS_USER_BINDING_PHONE", 20: "EMAIL_FORMAT_IS_CORRECT", 21: "MAIL_BINDING_ERROR", 22: "PHONE_BINDING_ERROR", 23: "REASON_TOKEN_DESTRUCTION", 24: "REASON_TOKEN_VERIFY_ERROR", 25: "REASON_TOKEN_HAS_EXPIRED", 26: "REASON_GENERATE_TOKEN_ERROR", 27: "UNSUPPORTED_VERIFICATION_TYPE", 28: "PHONE_ERROR", 29: "EMAIL_ERROR", 30: "SEND_CODE_ERROR", 31: "THIS_SHARE_CODE_IS_INVALID", 32: "INCONSISTENT_IDENTITY_VERIFICATION", 33: "THE_EMAIL_HAS_BEEN_BOUND", 34: "NO_AVAILABLE_SERVERS", 35: "UNSUPPORTED_PLATFORMS", 36: "REASON_AUTHORIZATION_CODE_ERROR", 37: "GET_SERVERS_NODE_ERR", 38: "GET_PLATFORM_NODE_ERR", 39: "SYNC_USER_INFO_ERR", 40: "USER_NOT_JOIN_NODE", } ErrorReason_value = map[string]int32{ "REASON_PARAMS": 0, "REASON_SYSTEM": 1, "REASON_NAME_OR_PASSWORD": 2, "REASON_CODE_IS_INVALID": 3, "REASON_LOGIN_STATUS": 4, "REASON_TOKEN_VERIFY": 5, "REASON_TOKEN_REFRESH": 6, "REASON_CODE_TYPE": 7, "REASON_VERIFY_CODE_ERROR": 8, "USER_DISABLE_LOGIN": 9, "VERIFICATION_CODE_HAS_EXPIRED": 10, "REGISTER_ACCOUNT_ERROR": 11, "UPDATE_ACCOUNT_PASSWORD_ERROR": 12, "USER_NOT_FOND": 13, "PASSWORD_IS_EMPTY": 14, "USER_HAD_REAL_NAMED": 15, "ID_CARD_HAS_BIND_TO_ANOTHER": 16, "REAL_NAME_FAILED": 17, "CALL_IDENTIFY_INTERFACE_FAILED": 18, "INPUT_PHONE_NOT_IS_USER_BINDING_PHONE": 19, "EMAIL_FORMAT_IS_CORRECT": 20, "MAIL_BINDING_ERROR": 21, "PHONE_BINDING_ERROR": 22, "REASON_TOKEN_DESTRUCTION": 23, "REASON_TOKEN_VERIFY_ERROR": 24, "REASON_TOKEN_HAS_EXPIRED": 25, "REASON_GENERATE_TOKEN_ERROR": 26, "UNSUPPORTED_VERIFICATION_TYPE": 27, "PHONE_ERROR": 28, "EMAIL_ERROR": 29, "SEND_CODE_ERROR": 30, "THIS_SHARE_CODE_IS_INVALID": 31, "INCONSISTENT_IDENTITY_VERIFICATION": 32, "THE_EMAIL_HAS_BEEN_BOUND": 33, "NO_AVAILABLE_SERVERS": 34, "UNSUPPORTED_PLATFORMS": 35, "REASON_AUTHORIZATION_CODE_ERROR": 36, "GET_SERVERS_NODE_ERR": 37, "GET_PLATFORM_NODE_ERR": 38, "SYNC_USER_INFO_ERR": 39, "USER_NOT_JOIN_NODE": 40, } )
Enum value maps for ErrorReason.
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user_center.auth.v2.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _Auth_Register_Handler, }, { MethodName: "Login", Handler: _Auth_Login_Handler, }, { MethodName: "RefToken", Handler: _Auth_RefToken_Handler, }, { MethodName: "VerifyToken", Handler: _Auth_VerifyToken_Handler, }, { MethodName: "DestructionToken", Handler: _Auth_DestructionToken_Handler, }, { MethodName: "SendCode", Handler: _Auth_SendCode_Handler, }, { MethodName: "VerifyCode", Handler: _Auth_VerifyCode_Handler, }, { MethodName: "UpdatePassword", Handler: _Auth_UpdatePassword_Handler, }, { MethodName: "RealNameAuth", Handler: _Auth_RealNameAuth_Handler, }, { MethodName: "Binding", Handler: _Auth_Binding_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user_center/auth/v2/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_user_center_auth_v2_auth_error_proto protoreflect.FileDescriptor
var File_user_center_auth_v2_auth_proto protoreflect.FileDescriptor
Functions ¶
func ErrorCallIdentifyInterfaceFailed ¶
身份认证接口调用失败
func ErrorEmailFormatIsCorrect ¶
邮箱格式不正确
func ErrorGetPlatformNodeErr ¶
获取平台节点错误
func ErrorGetServersNodeErr ¶
获取服务节点错误
func ErrorIdCardHasBindToAnother ¶
身份证号已被其他账号绑定
func ErrorInconsistentIdentityVerification ¶
身份核验不一致
func ErrorInputPhoneNotIsUserBindingPhone ¶
输入手机号与当前绑定手机号码不一致
func ErrorMailBindingError ¶
邮箱绑定失败
func ErrorNoAvailableServers ¶
无可用的节点信息
func ErrorPasswordIsEmpty ¶
密码为空
func ErrorPhoneBindingError ¶
手机号绑定失败
func ErrorRealNameFailed ¶
实名认证失败
func ErrorReasonAuthorizationCodeError ¶
生产授权码失败
func ErrorReasonCodeIsInvalid ¶
验证码错误
func ErrorReasonCodeType ¶
验证码类型错误
func ErrorReasonGenerateTokenError ¶
token生成失败
func ErrorReasonLoginStatus ¶
登录失败,用户状态异常
func ErrorReasonNameOrPassword ¶
用户名或者密码错误
func ErrorReasonParams ¶
为某个枚举单独设置错误码
func ErrorReasonSystem ¶
系统错误
func ErrorReasonTokenDestruction ¶
token 作废失败
func ErrorReasonTokenHasExpired ¶
token过期
func ErrorReasonTokenRefresh ¶
token 刷新失败
func ErrorReasonTokenVerify ¶
token 验证失败
func ErrorReasonTokenVerifyError ¶
token验证失败
func ErrorReasonVerifyCodeError ¶
验证码错误
func ErrorRegisterAccountError ¶
注册账号失败
func ErrorSendCodeError ¶
发送验证码失败
func ErrorSyncUserInfoErr ¶
同步用户信息失败
func ErrorTheEmailHasBeenBound ¶
邮箱已被绑定
func ErrorThisShareCodeIsInvalid ¶
推广码无效
func ErrorUnsupportedPlatforms ¶
不支持的平台
func ErrorUnsupportedVerificationType ¶
不支持的验证方式
func ErrorUpdateAccountPasswordError ¶
更新密码失败
func ErrorUserDisableLogin ¶
用户禁用
func ErrorUserHadRealNamed ¶
用户已经实名认证过
func ErrorUserNotFond ¶
用户不存在
func ErrorUserNotJoinNode ¶
用户未加入节点
func ErrorVerificationCodeHasExpired ¶
验证码已过期
func IsInconsistentIdentityVerification ¶
身份核验不一致
func IsInputPhoneNotIsUserBindingPhone ¶
输入手机号与当前绑定手机号码不一致
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
Types ¶
type AccountType ¶
type AccountType int32
const ( AccountType_ACCOUNT_TYPE_USER_PASSWORD AccountType = 0 // 用户名+密码 AccountType_ACCOUNT_TYPE_PHONE_CODE AccountType = 1 // 手机号+验证码 AccountType_ACCOUNT_TYPE_PHONE_PASSWORD AccountType = 2 // 手机号+密码 AccountType_ACCOUNT_TYPE_EMAIL_CODE AccountType = 3 // 邮箱+验证码 AccountType_ACCOUNT_TYPE_EMAIL_PASSWORD AccountType = 4 // 邮箱+密码 )
func (AccountType) Descriptor ¶
func (AccountType) Descriptor() protoreflect.EnumDescriptor
func (AccountType) Enum ¶
func (x AccountType) Enum() *AccountType
func (AccountType) EnumDescriptor
deprecated
func (AccountType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountType.Descriptor instead.
func (AccountType) Number ¶
func (x AccountType) Number() protoreflect.EnumNumber
func (AccountType) String ¶
func (x AccountType) String() string
func (AccountType) Type ¶
func (AccountType) Type() protoreflect.EnumType
type AuthClient ¶
type AuthClient interface { // 账号注册 Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*RegisterReply, error) // 账号登录 Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginReply, error) // 刷新 token RefToken(ctx context.Context, in *RefTokenReq, opts ...grpc.CallOption) (*RefTokenReply, error) // 验证 token VerifyToken(ctx context.Context, in *VerifyTokenReq, opts ...grpc.CallOption) (*VerifyTokenReply, error) // 销毁token DestructionToken(ctx context.Context, in *DestructionTokenReq, opts ...grpc.CallOption) (*DestructionTokenReply, error) // 发送验证码 SendCode(ctx context.Context, in *SendCodeReq, opts ...grpc.CallOption) (*SendCodeReply, error) // 验证 code VerifyCode(ctx context.Context, in *VerifyCodeReq, opts ...grpc.CallOption) (*VerifyCodeReply, error) // 修改密码 UpdatePassword(ctx context.Context, in *UpdatePasswordReq, opts ...grpc.CallOption) (*UpdatePasswordReply, error) // 实名认证 RealNameAuth(ctx context.Context, in *RealNameAuthReq, opts ...grpc.CallOption) (*RealNameAuthReply, error) // 绑定手机号或邮箱 Binding(ctx context.Context, in *BindingReq, opts ...grpc.CallOption) (*BindingReply, error) }
AuthClient is the client API for Auth service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
注册
func NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { // 账号注册 Register(context.Context, *RegisterReq) (*RegisterReply, error) // 账号登录 Login(context.Context, *LoginReq) (*LoginReply, error) // 刷新 token RefToken(context.Context, *RefTokenReq) (*RefTokenReply, error) // 验证 token VerifyToken(context.Context, *VerifyTokenReq) (*VerifyTokenReply, error) // 销毁token DestructionToken(context.Context, *DestructionTokenReq) (*DestructionTokenReply, error) // 发送验证码 SendCode(context.Context, *SendCodeReq) (*SendCodeReply, error) // 验证 code VerifyCode(context.Context, *VerifyCodeReq) (*VerifyCodeReply, error) // 修改密码 UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordReply, error) // 实名认证 RealNameAuth(context.Context, *RealNameAuthReq) (*RealNameAuthReply, error) // 绑定手机号或邮箱 Binding(context.Context, *BindingReq) (*BindingReply, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
注册
type AuthToken ¶
type AuthToken struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` ExpiresAt int64 `protobuf:"varint,3,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` RefExpiresAt int64 `protobuf:"varint,4,opt,name=refExpiresAt,proto3" json:"refExpiresAt,omitempty"` ServerCode string `protobuf:"bytes,5,opt,name=serverCode,proto3" json:"serverCode,omitempty"` UserId string `protobuf:"bytes,6,opt,name=userId,proto3" json:"userId,omitempty"` Options map[string]string `` //更多参数 /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
授权 token
func (*AuthToken) Descriptor
deprecated
func (*AuthToken) GetAccessToken ¶
func (*AuthToken) GetExpiresAt ¶
func (*AuthToken) GetOptions ¶
func (*AuthToken) GetRefExpiresAt ¶
func (*AuthToken) GetRefreshToken ¶
func (*AuthToken) GetServerCode ¶
func (*AuthToken) ProtoMessage ¶
func (*AuthToken) ProtoMessage()
func (*AuthToken) ProtoReflect ¶
func (x *AuthToken) ProtoReflect() protoreflect.Message
func (*AuthToken) Validate ¶
Validate checks the field values on AuthToken with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AuthToken) ValidateAll ¶
ValidateAll checks the field values on AuthToken with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AuthTokenMultiError, or nil if none found.
type AuthTokenMultiError ¶
type AuthTokenMultiError []error
AuthTokenMultiError is an error wrapping multiple validation errors returned by AuthToken.ValidateAll() if the designated constraints aren't met.
func (AuthTokenMultiError) AllErrors ¶
func (m AuthTokenMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AuthTokenMultiError) Error ¶
func (m AuthTokenMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AuthTokenValidationError ¶
type AuthTokenValidationError struct {
// contains filtered or unexported fields
}
AuthTokenValidationError is the validation error returned by AuthToken.Validate if the designated constraints aren't met.
func (AuthTokenValidationError) Cause ¶
func (e AuthTokenValidationError) Cause() error
Cause function returns cause value.
func (AuthTokenValidationError) Error ¶
func (e AuthTokenValidationError) Error() string
Error satisfies the builtin error interface
func (AuthTokenValidationError) ErrorName ¶
func (e AuthTokenValidationError) ErrorName() string
ErrorName returns error name.
func (AuthTokenValidationError) Field ¶
func (e AuthTokenValidationError) Field() string
Field function returns field value.
func (AuthTokenValidationError) Key ¶
func (e AuthTokenValidationError) Key() bool
Key function returns key value.
func (AuthTokenValidationError) Reason ¶
func (e AuthTokenValidationError) Reason() string
Reason function returns reason value.
type AuthorizeType ¶
type AuthorizeType int32
认证类型
const ( AuthorizeType_AUTHORIZE_CODE AuthorizeType = 0 //授权码 AuthorizeType_AUTHORIZE_TOKEN AuthorizeType = 1 //token )
func (AuthorizeType) Descriptor ¶
func (AuthorizeType) Descriptor() protoreflect.EnumDescriptor
func (AuthorizeType) Enum ¶
func (x AuthorizeType) Enum() *AuthorizeType
func (AuthorizeType) EnumDescriptor
deprecated
func (AuthorizeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthorizeType.Descriptor instead.
func (AuthorizeType) Number ¶
func (x AuthorizeType) Number() protoreflect.EnumNumber
func (AuthorizeType) String ¶
func (x AuthorizeType) String() string
func (AuthorizeType) Type ¶
func (AuthorizeType) Type() protoreflect.EnumType
type BindingReply ¶
type BindingReply struct {
// contains filtered or unexported fields
}
func (*BindingReply) Descriptor
deprecated
func (*BindingReply) Descriptor() ([]byte, []int)
Deprecated: Use BindingReply.ProtoReflect.Descriptor instead.
func (*BindingReply) ProtoMessage ¶
func (*BindingReply) ProtoMessage()
func (*BindingReply) ProtoReflect ¶
func (x *BindingReply) ProtoReflect() protoreflect.Message
func (*BindingReply) Reset ¶
func (x *BindingReply) Reset()
func (*BindingReply) String ¶
func (x *BindingReply) String() string
func (*BindingReply) Validate ¶
func (m *BindingReply) Validate() error
Validate checks the field values on BindingReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BindingReply) ValidateAll ¶
func (m *BindingReply) ValidateAll() error
ValidateAll checks the field values on BindingReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BindingReplyMultiError, or nil if none found.
type BindingReplyMultiError ¶
type BindingReplyMultiError []error
BindingReplyMultiError is an error wrapping multiple validation errors returned by BindingReply.ValidateAll() if the designated constraints aren't met.
func (BindingReplyMultiError) AllErrors ¶
func (m BindingReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BindingReplyMultiError) Error ¶
func (m BindingReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BindingReplyValidationError ¶
type BindingReplyValidationError struct {
// contains filtered or unexported fields
}
BindingReplyValidationError is the validation error returned by BindingReply.Validate if the designated constraints aren't met.
func (BindingReplyValidationError) Cause ¶
func (e BindingReplyValidationError) Cause() error
Cause function returns cause value.
func (BindingReplyValidationError) Error ¶
func (e BindingReplyValidationError) Error() string
Error satisfies the builtin error interface
func (BindingReplyValidationError) ErrorName ¶
func (e BindingReplyValidationError) ErrorName() string
ErrorName returns error name.
func (BindingReplyValidationError) Field ¶
func (e BindingReplyValidationError) Field() string
Field function returns field value.
func (BindingReplyValidationError) Key ¶
func (e BindingReplyValidationError) Key() bool
Key function returns key value.
func (BindingReplyValidationError) Reason ¶
func (e BindingReplyValidationError) Reason() string
Reason function returns reason value.
type BindingReq ¶
type BindingReq struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` //主键 Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` CodeType CodeType `protobuf:"varint,3,opt,name=codeType,proto3,enum=api.user_center.auth.v2.CodeType" json:"codeType,omitempty"` //验证码类型 0:手机验证码 1:邮箱验证码 AreaCode int64 `protobuf:"varint,4,opt,name=areaCode,proto3" json:"areaCode,omitempty"` Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` //验证码返回的key // contains filtered or unexported fields }
绑定 -------------------------------------------
func (*BindingReq) Descriptor
deprecated
func (*BindingReq) Descriptor() ([]byte, []int)
Deprecated: Use BindingReq.ProtoReflect.Descriptor instead.
func (*BindingReq) GetAccount ¶
func (x *BindingReq) GetAccount() string
func (*BindingReq) GetAreaCode ¶
func (x *BindingReq) GetAreaCode() int64
func (*BindingReq) GetCode ¶
func (x *BindingReq) GetCode() string
func (*BindingReq) GetCodeType ¶
func (x *BindingReq) GetCodeType() CodeType
func (*BindingReq) GetId ¶
func (x *BindingReq) GetId() string
func (*BindingReq) GetKey ¶
func (x *BindingReq) GetKey() string
func (*BindingReq) ProtoMessage ¶
func (*BindingReq) ProtoMessage()
func (*BindingReq) ProtoReflect ¶
func (x *BindingReq) ProtoReflect() protoreflect.Message
func (*BindingReq) Reset ¶
func (x *BindingReq) Reset()
func (*BindingReq) String ¶
func (x *BindingReq) String() string
func (*BindingReq) Validate ¶
func (m *BindingReq) Validate() error
Validate checks the field values on BindingReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BindingReq) ValidateAll ¶
func (m *BindingReq) ValidateAll() error
ValidateAll checks the field values on BindingReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BindingReqMultiError, or nil if none found.
type BindingReqMultiError ¶
type BindingReqMultiError []error
BindingReqMultiError is an error wrapping multiple validation errors returned by BindingReq.ValidateAll() if the designated constraints aren't met.
func (BindingReqMultiError) AllErrors ¶
func (m BindingReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BindingReqMultiError) Error ¶
func (m BindingReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BindingReqValidationError ¶
type BindingReqValidationError struct {
// contains filtered or unexported fields
}
BindingReqValidationError is the validation error returned by BindingReq.Validate if the designated constraints aren't met.
func (BindingReqValidationError) Cause ¶
func (e BindingReqValidationError) Cause() error
Cause function returns cause value.
func (BindingReqValidationError) Error ¶
func (e BindingReqValidationError) Error() string
Error satisfies the builtin error interface
func (BindingReqValidationError) ErrorName ¶
func (e BindingReqValidationError) ErrorName() string
ErrorName returns error name.
func (BindingReqValidationError) Field ¶
func (e BindingReqValidationError) Field() string
Field function returns field value.
func (BindingReqValidationError) Key ¶
func (e BindingReqValidationError) Key() bool
Key function returns key value.
func (BindingReqValidationError) Reason ¶
func (e BindingReqValidationError) Reason() string
Reason function returns reason value.
type CodeType ¶
type CodeType int32
验证码类型
func (CodeType) Descriptor ¶
func (CodeType) Descriptor() protoreflect.EnumDescriptor
func (CodeType) EnumDescriptor
deprecated
func (CodeType) Number ¶
func (x CodeType) Number() protoreflect.EnumNumber
func (CodeType) Type ¶
func (CodeType) Type() protoreflect.EnumType
type DestructionTokenReply ¶
type DestructionTokenReply struct {
// contains filtered or unexported fields
}
func (*DestructionTokenReply) Descriptor
deprecated
func (*DestructionTokenReply) Descriptor() ([]byte, []int)
Deprecated: Use DestructionTokenReply.ProtoReflect.Descriptor instead.
func (*DestructionTokenReply) ProtoMessage ¶
func (*DestructionTokenReply) ProtoMessage()
func (*DestructionTokenReply) ProtoReflect ¶
func (x *DestructionTokenReply) ProtoReflect() protoreflect.Message
func (*DestructionTokenReply) Reset ¶
func (x *DestructionTokenReply) Reset()
func (*DestructionTokenReply) String ¶
func (x *DestructionTokenReply) String() string
func (*DestructionTokenReply) Validate ¶
func (m *DestructionTokenReply) Validate() error
Validate checks the field values on DestructionTokenReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DestructionTokenReply) ValidateAll ¶
func (m *DestructionTokenReply) ValidateAll() error
ValidateAll checks the field values on DestructionTokenReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DestructionTokenReplyMultiError, or nil if none found.
type DestructionTokenReplyMultiError ¶
type DestructionTokenReplyMultiError []error
DestructionTokenReplyMultiError is an error wrapping multiple validation errors returned by DestructionTokenReply.ValidateAll() if the designated constraints aren't met.
func (DestructionTokenReplyMultiError) AllErrors ¶
func (m DestructionTokenReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DestructionTokenReplyMultiError) Error ¶
func (m DestructionTokenReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DestructionTokenReplyValidationError ¶
type DestructionTokenReplyValidationError struct {
// contains filtered or unexported fields
}
DestructionTokenReplyValidationError is the validation error returned by DestructionTokenReply.Validate if the designated constraints aren't met.
func (DestructionTokenReplyValidationError) Cause ¶
func (e DestructionTokenReplyValidationError) Cause() error
Cause function returns cause value.
func (DestructionTokenReplyValidationError) Error ¶
func (e DestructionTokenReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DestructionTokenReplyValidationError) ErrorName ¶
func (e DestructionTokenReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DestructionTokenReplyValidationError) Field ¶
func (e DestructionTokenReplyValidationError) Field() string
Field function returns field value.
func (DestructionTokenReplyValidationError) Key ¶
func (e DestructionTokenReplyValidationError) Key() bool
Key function returns key value.
func (DestructionTokenReplyValidationError) Reason ¶
func (e DestructionTokenReplyValidationError) Reason() string
Reason function returns reason value.
type DestructionTokenReq ¶
type DestructionTokenReq struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` // access token // contains filtered or unexported fields }
销毁token
func (*DestructionTokenReq) Descriptor
deprecated
func (*DestructionTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use DestructionTokenReq.ProtoReflect.Descriptor instead.
func (*DestructionTokenReq) GetAccessToken ¶
func (x *DestructionTokenReq) GetAccessToken() string
func (*DestructionTokenReq) ProtoMessage ¶
func (*DestructionTokenReq) ProtoMessage()
func (*DestructionTokenReq) ProtoReflect ¶
func (x *DestructionTokenReq) ProtoReflect() protoreflect.Message
func (*DestructionTokenReq) Reset ¶
func (x *DestructionTokenReq) Reset()
func (*DestructionTokenReq) String ¶
func (x *DestructionTokenReq) String() string
func (*DestructionTokenReq) Validate ¶
func (m *DestructionTokenReq) Validate() error
Validate checks the field values on DestructionTokenReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DestructionTokenReq) ValidateAll ¶
func (m *DestructionTokenReq) ValidateAll() error
ValidateAll checks the field values on DestructionTokenReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DestructionTokenReqMultiError, or nil if none found.
type DestructionTokenReqMultiError ¶
type DestructionTokenReqMultiError []error
DestructionTokenReqMultiError is an error wrapping multiple validation errors returned by DestructionTokenReq.ValidateAll() if the designated constraints aren't met.
func (DestructionTokenReqMultiError) AllErrors ¶
func (m DestructionTokenReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DestructionTokenReqMultiError) Error ¶
func (m DestructionTokenReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DestructionTokenReqValidationError ¶
type DestructionTokenReqValidationError struct {
// contains filtered or unexported fields
}
DestructionTokenReqValidationError is the validation error returned by DestructionTokenReq.Validate if the designated constraints aren't met.
func (DestructionTokenReqValidationError) Cause ¶
func (e DestructionTokenReqValidationError) Cause() error
Cause function returns cause value.
func (DestructionTokenReqValidationError) Error ¶
func (e DestructionTokenReqValidationError) Error() string
Error satisfies the builtin error interface
func (DestructionTokenReqValidationError) ErrorName ¶
func (e DestructionTokenReqValidationError) ErrorName() string
ErrorName returns error name.
func (DestructionTokenReqValidationError) Field ¶
func (e DestructionTokenReqValidationError) Field() string
Field function returns field value.
func (DestructionTokenReqValidationError) Key ¶
func (e DestructionTokenReqValidationError) Key() bool
Key function returns key value.
func (DestructionTokenReqValidationError) Reason ¶
func (e DestructionTokenReqValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
错误
const ( // 为某个枚举单独设置错误码 ErrorReason_REASON_PARAMS ErrorReason = 0 // 参数错误 ErrorReason_REASON_SYSTEM ErrorReason = 1 // 系统错误 ErrorReason_REASON_NAME_OR_PASSWORD ErrorReason = 2 // 用户名或者密码错误 ErrorReason_REASON_CODE_IS_INVALID ErrorReason = 3 // 验证码错误 ErrorReason_REASON_LOGIN_STATUS ErrorReason = 4 // 登录失败,用户状态异常 ErrorReason_REASON_TOKEN_VERIFY ErrorReason = 5 // token 验证失败 ErrorReason_REASON_TOKEN_REFRESH ErrorReason = 6 // token 刷新失败 ErrorReason_REASON_CODE_TYPE ErrorReason = 7 // 验证码类型错误 // 验证码错误 ErrorReason_REASON_VERIFY_CODE_ERROR ErrorReason = 8 //REASON // 用户禁用 ErrorReason_USER_DISABLE_LOGIN ErrorReason = 9 // 验证码已过期 ErrorReason_VERIFICATION_CODE_HAS_EXPIRED ErrorReason = 10 // 注册账号失败 ErrorReason_REGISTER_ACCOUNT_ERROR ErrorReason = 11 // 更新密码失败 ErrorReason_UPDATE_ACCOUNT_PASSWORD_ERROR ErrorReason = 12 // 用户不存在 ErrorReason_USER_NOT_FOND ErrorReason = 13 // 密码为空 ErrorReason_PASSWORD_IS_EMPTY ErrorReason = 14 // 用户已经实名认证过 ErrorReason_USER_HAD_REAL_NAMED ErrorReason = 15 // 身份证号已被其他账号绑定 ErrorReason_ID_CARD_HAS_BIND_TO_ANOTHER ErrorReason = 16 // 实名认证失败 ErrorReason_REAL_NAME_FAILED ErrorReason = 17 // 身份认证接口调用失败 ErrorReason_CALL_IDENTIFY_INTERFACE_FAILED ErrorReason = 18 // 输入手机号与当前绑定手机号码不一致 ErrorReason_INPUT_PHONE_NOT_IS_USER_BINDING_PHONE ErrorReason = 19 // 邮箱格式不正确 ErrorReason_EMAIL_FORMAT_IS_CORRECT ErrorReason = 20 // 邮箱绑定失败 ErrorReason_MAIL_BINDING_ERROR ErrorReason = 21 // 手机号绑定失败 ErrorReason_PHONE_BINDING_ERROR ErrorReason = 22 ErrorReason_REASON_TOKEN_DESTRUCTION ErrorReason = 23 // token 作废失败 ErrorReason_REASON_TOKEN_VERIFY_ERROR ErrorReason = 24 //token验证失败 ErrorReason_REASON_TOKEN_HAS_EXPIRED ErrorReason = 25 //token过期 ErrorReason_REASON_GENERATE_TOKEN_ERROR ErrorReason = 26 //token生成失败 ErrorReason_UNSUPPORTED_VERIFICATION_TYPE ErrorReason = 27 //不支持的验证方式 // 手机号错误 ErrorReason_PHONE_ERROR ErrorReason = 28 // 手机号错误 ErrorReason_EMAIL_ERROR ErrorReason = 29 // 发送验证码失败 ErrorReason_SEND_CODE_ERROR ErrorReason = 30 // 推广码无效 ErrorReason_THIS_SHARE_CODE_IS_INVALID ErrorReason = 31 // 身份核验不一致 ErrorReason_INCONSISTENT_IDENTITY_VERIFICATION ErrorReason = 32 // 邮箱已被绑定 ErrorReason_THE_EMAIL_HAS_BEEN_BOUND ErrorReason = 33 // 无可用的节点信息 ErrorReason_NO_AVAILABLE_SERVERS ErrorReason = 34 // 不支持的平台 ErrorReason_UNSUPPORTED_PLATFORMS ErrorReason = 35 ErrorReason_REASON_AUTHORIZATION_CODE_ERROR ErrorReason = 36 //生产授权码失败 // 获取服务节点错误 ErrorReason_GET_SERVERS_NODE_ERR ErrorReason = 37 // 获取平台节点错误 ErrorReason_GET_PLATFORM_NODE_ERR ErrorReason = 38 // 同步用户信息失败 ErrorReason_SYNC_USER_INFO_ERR ErrorReason = 39 // 用户未加入节点 ErrorReason_USER_NOT_JOIN_NODE ErrorReason = 40 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type LoginReply ¶
type LoginReply struct { AuthToken *AuthToken `protobuf:"bytes,1,opt,name=authToken,proto3" json:"authToken,omitempty"` //token AuthorizationCode string `protobuf:"bytes,2,opt,name=authorizationCode,proto3" json:"authorizationCode,omitempty"` //授权码 Node *v21.NodeBase `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` //节点信息 Managers []string `protobuf:"bytes,4,rep,name=managers,proto3" json:"managers,omitempty"` //平台节点信息 // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetAuthToken ¶
func (x *LoginReply) GetAuthToken() *AuthToken
func (*LoginReply) GetAuthorizationCode ¶
func (x *LoginReply) GetAuthorizationCode() string
func (*LoginReply) GetManagers ¶
func (x *LoginReply) GetManagers() []string
func (*LoginReply) GetNode ¶
func (x *LoginReply) GetNode() *v21.NodeBase
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) ProtoReflect ¶
func (x *LoginReply) ProtoReflect() protoreflect.Message
func (*LoginReply) Reset ¶
func (x *LoginReply) Reset()
func (*LoginReply) String ¶
func (x *LoginReply) String() string
func (*LoginReply) Validate ¶
func (m *LoginReply) Validate() error
Validate checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginReply) ValidateAll ¶
func (m *LoginReply) ValidateAll() error
ValidateAll checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReplyMultiError, or nil if none found.
type LoginReplyMultiError ¶
type LoginReplyMultiError []error
LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.
func (LoginReplyMultiError) AllErrors ¶
func (m LoginReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReplyMultiError) Error ¶
func (m LoginReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginReplyValidationError ¶
type LoginReplyValidationError struct {
// contains filtered or unexported fields
}
LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.
func (LoginReplyValidationError) Cause ¶
func (e LoginReplyValidationError) Cause() error
Cause function returns cause value.
func (LoginReplyValidationError) Error ¶
func (e LoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (LoginReplyValidationError) ErrorName ¶
func (e LoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (LoginReplyValidationError) Field ¶
func (e LoginReplyValidationError) Field() string
Field function returns field value.
func (LoginReplyValidationError) Key ¶
func (e LoginReplyValidationError) Key() bool
Key function returns key value.
func (LoginReplyValidationError) Reason ¶
func (e LoginReplyValidationError) Reason() string
Reason function returns reason value.
type LoginReq ¶
type LoginReq struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` //手机号或账号 Proof string `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof,omitempty"` // 登录凭证 可以是验证码或者密码 根据 AccountType 区分 AccountType AccountType `protobuf:"varint,3,opt,name=accountType,proto3,enum=api.user_center.auth.v2.AccountType" json:"accountType,omitempty"` //登录的账号类型 0:用户名+密码 1:手机号+验证码 2:手机号+密码 3:邮箱+验证码 4:邮箱+密码 ResponseType AuthorizeType `protobuf:"varint,4,opt,name=responseType,proto3,enum=api.user_center.auth.v2.AuthorizeType" json:"responseType,omitempty"` //响应的类型 0:授权码 1:token Platform string `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty"` // 来源终端,IOS Android Windows OSX Web MiniWeb Linux Node string `protobuf:"bytes,6,opt,name=node,proto3" json:"node,omitempty"` // 节点 id Scope []string `protobuf:"bytes,7,rep,name=scope,proto3" json:"scope,omitempty"` // 申请的权限 ResNodeInfo bool `protobuf:"varint,8,opt,name=resNodeInfo,proto3" json:"resNodeInfo,omitempty"` //是否需要显示节点信息 Key string `protobuf:"bytes,12,opt,name=key,proto3" json:"key,omitempty"` // 验证码的key // contains filtered or unexported fields }
账号登录
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetAccount ¶
func (*LoginReq) GetAccountType ¶
func (x *LoginReq) GetAccountType() AccountType
func (*LoginReq) GetPlatform ¶
func (*LoginReq) GetResNodeInfo ¶
func (*LoginReq) GetResponseType ¶
func (x *LoginReq) GetResponseType() AuthorizeType
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
func (*LoginReq) Validate ¶
Validate checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginReq) ValidateAll ¶
ValidateAll checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReqMultiError, or nil if none found.
type LoginReqMultiError ¶
type LoginReqMultiError []error
LoginReqMultiError is an error wrapping multiple validation errors returned by LoginReq.ValidateAll() if the designated constraints aren't met.
func (LoginReqMultiError) AllErrors ¶
func (m LoginReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReqMultiError) Error ¶
func (m LoginReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginReqValidationError ¶
type LoginReqValidationError struct {
// contains filtered or unexported fields
}
LoginReqValidationError is the validation error returned by LoginReq.Validate if the designated constraints aren't met.
func (LoginReqValidationError) Cause ¶
func (e LoginReqValidationError) Cause() error
Cause function returns cause value.
func (LoginReqValidationError) Error ¶
func (e LoginReqValidationError) Error() string
Error satisfies the builtin error interface
func (LoginReqValidationError) ErrorName ¶
func (e LoginReqValidationError) ErrorName() string
ErrorName returns error name.
func (LoginReqValidationError) Field ¶
func (e LoginReqValidationError) Field() string
Field function returns field value.
func (LoginReqValidationError) Key ¶
func (e LoginReqValidationError) Key() bool
Key function returns key value.
func (LoginReqValidationError) Reason ¶
func (e LoginReqValidationError) Reason() string
Reason function returns reason value.
type RealNameAuthReply ¶
type RealNameAuthReply struct {
// contains filtered or unexported fields
}
func (*RealNameAuthReply) Descriptor
deprecated
func (*RealNameAuthReply) Descriptor() ([]byte, []int)
Deprecated: Use RealNameAuthReply.ProtoReflect.Descriptor instead.
func (*RealNameAuthReply) ProtoMessage ¶
func (*RealNameAuthReply) ProtoMessage()
func (*RealNameAuthReply) ProtoReflect ¶
func (x *RealNameAuthReply) ProtoReflect() protoreflect.Message
func (*RealNameAuthReply) Reset ¶
func (x *RealNameAuthReply) Reset()
func (*RealNameAuthReply) String ¶
func (x *RealNameAuthReply) String() string
func (*RealNameAuthReply) Validate ¶
func (m *RealNameAuthReply) Validate() error
Validate checks the field values on RealNameAuthReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RealNameAuthReply) ValidateAll ¶
func (m *RealNameAuthReply) ValidateAll() error
ValidateAll checks the field values on RealNameAuthReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RealNameAuthReplyMultiError, or nil if none found.
type RealNameAuthReplyMultiError ¶
type RealNameAuthReplyMultiError []error
RealNameAuthReplyMultiError is an error wrapping multiple validation errors returned by RealNameAuthReply.ValidateAll() if the designated constraints aren't met.
func (RealNameAuthReplyMultiError) AllErrors ¶
func (m RealNameAuthReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RealNameAuthReplyMultiError) Error ¶
func (m RealNameAuthReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RealNameAuthReplyValidationError ¶
type RealNameAuthReplyValidationError struct {
// contains filtered or unexported fields
}
RealNameAuthReplyValidationError is the validation error returned by RealNameAuthReply.Validate if the designated constraints aren't met.
func (RealNameAuthReplyValidationError) Cause ¶
func (e RealNameAuthReplyValidationError) Cause() error
Cause function returns cause value.
func (RealNameAuthReplyValidationError) Error ¶
func (e RealNameAuthReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RealNameAuthReplyValidationError) ErrorName ¶
func (e RealNameAuthReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RealNameAuthReplyValidationError) Field ¶
func (e RealNameAuthReplyValidationError) Field() string
Field function returns field value.
func (RealNameAuthReplyValidationError) Key ¶
func (e RealNameAuthReplyValidationError) Key() bool
Key function returns key value.
func (RealNameAuthReplyValidationError) Reason ¶
func (e RealNameAuthReplyValidationError) Reason() string
Reason function returns reason value.
type RealNameAuthReq ¶
type RealNameAuthReq struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户 id FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,omitempty"` // 姓名 PersonId string `protobuf:"bytes,3,opt,name=personId,proto3" json:"personId,omitempty"` // 身份证号 RealPhone string `protobuf:"bytes,4,opt,name=realPhone,proto3" json:"realPhone,omitempty"` // 真实手机 // contains filtered or unexported fields }
RealNameAuthReq 实名认证
func (*RealNameAuthReq) Descriptor
deprecated
func (*RealNameAuthReq) Descriptor() ([]byte, []int)
Deprecated: Use RealNameAuthReq.ProtoReflect.Descriptor instead.
func (*RealNameAuthReq) GetFullName ¶
func (x *RealNameAuthReq) GetFullName() string
func (*RealNameAuthReq) GetPersonId ¶
func (x *RealNameAuthReq) GetPersonId() string
func (*RealNameAuthReq) GetRealPhone ¶
func (x *RealNameAuthReq) GetRealPhone() string
func (*RealNameAuthReq) GetUserId ¶
func (x *RealNameAuthReq) GetUserId() string
func (*RealNameAuthReq) ProtoMessage ¶
func (*RealNameAuthReq) ProtoMessage()
func (*RealNameAuthReq) ProtoReflect ¶
func (x *RealNameAuthReq) ProtoReflect() protoreflect.Message
func (*RealNameAuthReq) Reset ¶
func (x *RealNameAuthReq) Reset()
func (*RealNameAuthReq) String ¶
func (x *RealNameAuthReq) String() string
func (*RealNameAuthReq) Validate ¶
func (m *RealNameAuthReq) Validate() error
Validate checks the field values on RealNameAuthReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RealNameAuthReq) ValidateAll ¶
func (m *RealNameAuthReq) ValidateAll() error
ValidateAll checks the field values on RealNameAuthReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RealNameAuthReqMultiError, or nil if none found.
type RealNameAuthReqMultiError ¶
type RealNameAuthReqMultiError []error
RealNameAuthReqMultiError is an error wrapping multiple validation errors returned by RealNameAuthReq.ValidateAll() if the designated constraints aren't met.
func (RealNameAuthReqMultiError) AllErrors ¶
func (m RealNameAuthReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RealNameAuthReqMultiError) Error ¶
func (m RealNameAuthReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RealNameAuthReqValidationError ¶
type RealNameAuthReqValidationError struct {
// contains filtered or unexported fields
}
RealNameAuthReqValidationError is the validation error returned by RealNameAuthReq.Validate if the designated constraints aren't met.
func (RealNameAuthReqValidationError) Cause ¶
func (e RealNameAuthReqValidationError) Cause() error
Cause function returns cause value.
func (RealNameAuthReqValidationError) Error ¶
func (e RealNameAuthReqValidationError) Error() string
Error satisfies the builtin error interface
func (RealNameAuthReqValidationError) ErrorName ¶
func (e RealNameAuthReqValidationError) ErrorName() string
ErrorName returns error name.
func (RealNameAuthReqValidationError) Field ¶
func (e RealNameAuthReqValidationError) Field() string
Field function returns field value.
func (RealNameAuthReqValidationError) Key ¶
func (e RealNameAuthReqValidationError) Key() bool
Key function returns key value.
func (RealNameAuthReqValidationError) Reason ¶
func (e RealNameAuthReqValidationError) Reason() string
Reason function returns reason value.
type RefTokenReply ¶
type RefTokenReply struct { AuthToken *AuthToken `protobuf:"bytes,1,opt,name=authToken,proto3" json:"authToken,omitempty"` Node *v21.NodeBase `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` //节点信息 Managers []string `protobuf:"bytes,3,rep,name=managers,proto3" json:"managers,omitempty"` //平台节点信息 // contains filtered or unexported fields }
func (*RefTokenReply) Descriptor
deprecated
func (*RefTokenReply) Descriptor() ([]byte, []int)
Deprecated: Use RefTokenReply.ProtoReflect.Descriptor instead.
func (*RefTokenReply) GetAuthToken ¶
func (x *RefTokenReply) GetAuthToken() *AuthToken
func (*RefTokenReply) GetManagers ¶
func (x *RefTokenReply) GetManagers() []string
func (*RefTokenReply) GetNode ¶
func (x *RefTokenReply) GetNode() *v21.NodeBase
func (*RefTokenReply) ProtoMessage ¶
func (*RefTokenReply) ProtoMessage()
func (*RefTokenReply) ProtoReflect ¶
func (x *RefTokenReply) ProtoReflect() protoreflect.Message
func (*RefTokenReply) Reset ¶
func (x *RefTokenReply) Reset()
func (*RefTokenReply) String ¶
func (x *RefTokenReply) String() string
func (*RefTokenReply) Validate ¶
func (m *RefTokenReply) Validate() error
Validate checks the field values on RefTokenReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RefTokenReply) ValidateAll ¶
func (m *RefTokenReply) ValidateAll() error
ValidateAll checks the field values on RefTokenReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefTokenReplyMultiError, or nil if none found.
type RefTokenReplyMultiError ¶
type RefTokenReplyMultiError []error
RefTokenReplyMultiError is an error wrapping multiple validation errors returned by RefTokenReply.ValidateAll() if the designated constraints aren't met.
func (RefTokenReplyMultiError) AllErrors ¶
func (m RefTokenReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefTokenReplyMultiError) Error ¶
func (m RefTokenReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefTokenReplyValidationError ¶
type RefTokenReplyValidationError struct {
// contains filtered or unexported fields
}
RefTokenReplyValidationError is the validation error returned by RefTokenReply.Validate if the designated constraints aren't met.
func (RefTokenReplyValidationError) Cause ¶
func (e RefTokenReplyValidationError) Cause() error
Cause function returns cause value.
func (RefTokenReplyValidationError) Error ¶
func (e RefTokenReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RefTokenReplyValidationError) ErrorName ¶
func (e RefTokenReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RefTokenReplyValidationError) Field ¶
func (e RefTokenReplyValidationError) Field() string
Field function returns field value.
func (RefTokenReplyValidationError) Key ¶
func (e RefTokenReplyValidationError) Key() bool
Key function returns key value.
func (RefTokenReplyValidationError) Reason ¶
func (e RefTokenReplyValidationError) Reason() string
Reason function returns reason value.
type RefTokenReq ¶
type RefTokenReq struct { RefToken string `protobuf:"bytes,1,opt,name=refToken,proto3" json:"refToken,omitempty"` // 刷新 token ResNodeInfo bool `protobuf:"varint,2,opt,name=resNodeInfo,proto3" json:"resNodeInfo,omitempty"` //是否需要显示节点信息 Node string `protobuf:"bytes,3,opt,name=node,proto3" json:"node,omitempty"` // 节点 id // contains filtered or unexported fields }
token 刷新
func (*RefTokenReq) Descriptor
deprecated
func (*RefTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use RefTokenReq.ProtoReflect.Descriptor instead.
func (*RefTokenReq) GetNode ¶
func (x *RefTokenReq) GetNode() string
func (*RefTokenReq) GetRefToken ¶
func (x *RefTokenReq) GetRefToken() string
func (*RefTokenReq) GetResNodeInfo ¶
func (x *RefTokenReq) GetResNodeInfo() bool
func (*RefTokenReq) ProtoMessage ¶
func (*RefTokenReq) ProtoMessage()
func (*RefTokenReq) ProtoReflect ¶
func (x *RefTokenReq) ProtoReflect() protoreflect.Message
func (*RefTokenReq) Reset ¶
func (x *RefTokenReq) Reset()
func (*RefTokenReq) String ¶
func (x *RefTokenReq) String() string
func (*RefTokenReq) Validate ¶
func (m *RefTokenReq) Validate() error
Validate checks the field values on RefTokenReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RefTokenReq) ValidateAll ¶
func (m *RefTokenReq) ValidateAll() error
ValidateAll checks the field values on RefTokenReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RefTokenReqMultiError, or nil if none found.
type RefTokenReqMultiError ¶
type RefTokenReqMultiError []error
RefTokenReqMultiError is an error wrapping multiple validation errors returned by RefTokenReq.ValidateAll() if the designated constraints aren't met.
func (RefTokenReqMultiError) AllErrors ¶
func (m RefTokenReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RefTokenReqMultiError) Error ¶
func (m RefTokenReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RefTokenReqValidationError ¶
type RefTokenReqValidationError struct {
// contains filtered or unexported fields
}
RefTokenReqValidationError is the validation error returned by RefTokenReq.Validate if the designated constraints aren't met.
func (RefTokenReqValidationError) Cause ¶
func (e RefTokenReqValidationError) Cause() error
Cause function returns cause value.
func (RefTokenReqValidationError) Error ¶
func (e RefTokenReqValidationError) Error() string
Error satisfies the builtin error interface
func (RefTokenReqValidationError) ErrorName ¶
func (e RefTokenReqValidationError) ErrorName() string
ErrorName returns error name.
func (RefTokenReqValidationError) Field ¶
func (e RefTokenReqValidationError) Field() string
Field function returns field value.
func (RefTokenReqValidationError) Key ¶
func (e RefTokenReqValidationError) Key() bool
Key function returns key value.
func (RefTokenReqValidationError) Reason ¶
func (e RefTokenReqValidationError) Reason() string
Reason function returns reason value.
type RegisterReply ¶
type RegisterReply struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id // contains filtered or unexported fields }
func (*RegisterReply) Descriptor
deprecated
func (*RegisterReply) Descriptor() ([]byte, []int)
Deprecated: Use RegisterReply.ProtoReflect.Descriptor instead.
func (*RegisterReply) GetUserId ¶
func (x *RegisterReply) GetUserId() string
func (*RegisterReply) ProtoMessage ¶
func (*RegisterReply) ProtoMessage()
func (*RegisterReply) ProtoReflect ¶
func (x *RegisterReply) ProtoReflect() protoreflect.Message
func (*RegisterReply) Reset ¶
func (x *RegisterReply) Reset()
func (*RegisterReply) String ¶
func (x *RegisterReply) String() string
func (*RegisterReply) Validate ¶
func (m *RegisterReply) Validate() error
Validate checks the field values on RegisterReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterReply) ValidateAll ¶
func (m *RegisterReply) ValidateAll() error
ValidateAll checks the field values on RegisterReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterReplyMultiError, or nil if none found.
type RegisterReplyMultiError ¶
type RegisterReplyMultiError []error
RegisterReplyMultiError is an error wrapping multiple validation errors returned by RegisterReply.ValidateAll() if the designated constraints aren't met.
func (RegisterReplyMultiError) AllErrors ¶
func (m RegisterReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterReplyMultiError) Error ¶
func (m RegisterReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterReplyValidationError ¶
type RegisterReplyValidationError struct {
// contains filtered or unexported fields
}
RegisterReplyValidationError is the validation error returned by RegisterReply.Validate if the designated constraints aren't met.
func (RegisterReplyValidationError) Cause ¶
func (e RegisterReplyValidationError) Cause() error
Cause function returns cause value.
func (RegisterReplyValidationError) Error ¶
func (e RegisterReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterReplyValidationError) ErrorName ¶
func (e RegisterReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterReplyValidationError) Field ¶
func (e RegisterReplyValidationError) Field() string
Field function returns field value.
func (RegisterReplyValidationError) Key ¶
func (e RegisterReplyValidationError) Key() bool
Key function returns key value.
func (RegisterReplyValidationError) Reason ¶
func (e RegisterReplyValidationError) Reason() string
Reason function returns reason value.
type RegisterReq ¶
type RegisterReq struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` //手机号/账号/邮箱 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 密码 Proof string `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` // 登录凭证 可以是验证码或者密码 根据 AccountType 区分 RegisterType RegisterType `` // 注册类型类型 0:手机号 1:邮箱 2:账号 /* 140-byte string literal not displayed */ Platform string `protobuf:"bytes,5,opt,name=platform,proto3" json:"platform,omitempty"` // 来源终端,IOS Android Windows OSX Web MiniWeb Linux Nickname string `protobuf:"bytes,6,opt,name=nickname,proto3" json:"nickname,omitempty"` // 昵称 AreaCode int32 `protobuf:"varint,7,opt,name=areaCode,proto3" json:"areaCode,omitempty"` // 区号 FaceURL string `protobuf:"bytes,9,opt,name=faceURL,proto3" json:"faceURL,omitempty"` // 头像 Gender v2.Gender `protobuf:"varint,10,opt,name=gender,proto3,enum=api.common.enum.v2.Gender" json:"gender,omitempty"` // 性别;0:未知 1:男 2:女 Birth int64 `protobuf:"varint,11,opt,name=birth,proto3" json:"birth,omitempty"` // 生日 Key string `protobuf:"bytes,12,opt,name=key,proto3" json:"key,omitempty"` // 验证码的key // contains filtered or unexported fields }
账号注册
func (*RegisterReq) Descriptor
deprecated
func (*RegisterReq) Descriptor() ([]byte, []int)
Deprecated: Use RegisterReq.ProtoReflect.Descriptor instead.
func (*RegisterReq) GetAccount ¶
func (x *RegisterReq) GetAccount() string
func (*RegisterReq) GetAreaCode ¶
func (x *RegisterReq) GetAreaCode() int32
func (*RegisterReq) GetBirth ¶
func (x *RegisterReq) GetBirth() int64
func (*RegisterReq) GetFaceURL ¶
func (x *RegisterReq) GetFaceURL() string
func (*RegisterReq) GetGender ¶
func (x *RegisterReq) GetGender() v2.Gender
func (*RegisterReq) GetKey ¶
func (x *RegisterReq) GetKey() string
func (*RegisterReq) GetNickname ¶
func (x *RegisterReq) GetNickname() string
func (*RegisterReq) GetPassword ¶
func (x *RegisterReq) GetPassword() string
func (*RegisterReq) GetPlatform ¶
func (x *RegisterReq) GetPlatform() string
func (*RegisterReq) GetProof ¶
func (x *RegisterReq) GetProof() string
func (*RegisterReq) GetRegisterType ¶
func (x *RegisterReq) GetRegisterType() RegisterType
func (*RegisterReq) GetShareCode ¶
func (x *RegisterReq) GetShareCode() string
func (*RegisterReq) ProtoMessage ¶
func (*RegisterReq) ProtoMessage()
func (*RegisterReq) ProtoReflect ¶
func (x *RegisterReq) ProtoReflect() protoreflect.Message
func (*RegisterReq) Reset ¶
func (x *RegisterReq) Reset()
func (*RegisterReq) String ¶
func (x *RegisterReq) String() string
func (*RegisterReq) Validate ¶
func (m *RegisterReq) Validate() error
Validate checks the field values on RegisterReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterReq) ValidateAll ¶
func (m *RegisterReq) ValidateAll() error
ValidateAll checks the field values on RegisterReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterReqMultiError, or nil if none found.
type RegisterReqMultiError ¶
type RegisterReqMultiError []error
RegisterReqMultiError is an error wrapping multiple validation errors returned by RegisterReq.ValidateAll() if the designated constraints aren't met.
func (RegisterReqMultiError) AllErrors ¶
func (m RegisterReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterReqMultiError) Error ¶
func (m RegisterReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterReqValidationError ¶
type RegisterReqValidationError struct {
// contains filtered or unexported fields
}
RegisterReqValidationError is the validation error returned by RegisterReq.Validate if the designated constraints aren't met.
func (RegisterReqValidationError) Cause ¶
func (e RegisterReqValidationError) Cause() error
Cause function returns cause value.
func (RegisterReqValidationError) Error ¶
func (e RegisterReqValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterReqValidationError) ErrorName ¶
func (e RegisterReqValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterReqValidationError) Field ¶
func (e RegisterReqValidationError) Field() string
Field function returns field value.
func (RegisterReqValidationError) Key ¶
func (e RegisterReqValidationError) Key() bool
Key function returns key value.
func (RegisterReqValidationError) Reason ¶
func (e RegisterReqValidationError) Reason() string
Reason function returns reason value.
type RegisterType ¶
type RegisterType int32
注册/登录 的账号类型
const ( RegisterType_REGISTER_TYPE_PHONE RegisterType = 0 // 手机号 RegisterType_REGISTER_TYPE_EMAIL RegisterType = 1 // 邮箱 RegisterType_REGISTER_TYPE_USER RegisterType = 2 // 用户名 )
func (RegisterType) Descriptor ¶
func (RegisterType) Descriptor() protoreflect.EnumDescriptor
func (RegisterType) Enum ¶
func (x RegisterType) Enum() *RegisterType
func (RegisterType) EnumDescriptor
deprecated
func (RegisterType) EnumDescriptor() ([]byte, []int)
Deprecated: Use RegisterType.Descriptor instead.
func (RegisterType) Number ¶
func (x RegisterType) Number() protoreflect.EnumNumber
func (RegisterType) String ¶
func (x RegisterType) String() string
func (RegisterType) Type ¶
func (RegisterType) Type() protoreflect.EnumType
type SSOLoginReply ¶
type SSOLoginReply struct { AuthToken *AuthToken `protobuf:"bytes,1,opt,name=authToken,proto3" json:"authToken,omitempty"` // contains filtered or unexported fields }
func (*SSOLoginReply) Descriptor
deprecated
func (*SSOLoginReply) Descriptor() ([]byte, []int)
Deprecated: Use SSOLoginReply.ProtoReflect.Descriptor instead.
func (*SSOLoginReply) GetAuthToken ¶
func (x *SSOLoginReply) GetAuthToken() *AuthToken
func (*SSOLoginReply) ProtoMessage ¶
func (*SSOLoginReply) ProtoMessage()
func (*SSOLoginReply) ProtoReflect ¶
func (x *SSOLoginReply) ProtoReflect() protoreflect.Message
func (*SSOLoginReply) Reset ¶
func (x *SSOLoginReply) Reset()
func (*SSOLoginReply) String ¶
func (x *SSOLoginReply) String() string
func (*SSOLoginReply) Validate ¶
func (m *SSOLoginReply) Validate() error
Validate checks the field values on SSOLoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SSOLoginReply) ValidateAll ¶
func (m *SSOLoginReply) ValidateAll() error
ValidateAll checks the field values on SSOLoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SSOLoginReplyMultiError, or nil if none found.
type SSOLoginReplyMultiError ¶
type SSOLoginReplyMultiError []error
SSOLoginReplyMultiError is an error wrapping multiple validation errors returned by SSOLoginReply.ValidateAll() if the designated constraints aren't met.
func (SSOLoginReplyMultiError) AllErrors ¶
func (m SSOLoginReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SSOLoginReplyMultiError) Error ¶
func (m SSOLoginReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SSOLoginReplyValidationError ¶
type SSOLoginReplyValidationError struct {
// contains filtered or unexported fields
}
SSOLoginReplyValidationError is the validation error returned by SSOLoginReply.Validate if the designated constraints aren't met.
func (SSOLoginReplyValidationError) Cause ¶
func (e SSOLoginReplyValidationError) Cause() error
Cause function returns cause value.
func (SSOLoginReplyValidationError) Error ¶
func (e SSOLoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (SSOLoginReplyValidationError) ErrorName ¶
func (e SSOLoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (SSOLoginReplyValidationError) Field ¶
func (e SSOLoginReplyValidationError) Field() string
Field function returns field value.
func (SSOLoginReplyValidationError) Key ¶
func (e SSOLoginReplyValidationError) Key() bool
Key function returns key value.
func (SSOLoginReplyValidationError) Reason ¶
func (e SSOLoginReplyValidationError) Reason() string
Reason function returns reason value.
type SSOLoginReq ¶
type SSOLoginReq struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` //手机号或账号 Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` //平台的token Platform string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"` // 来源终端,IOS Android Windows OSX Web MiniWeb Linux; // contains filtered or unexported fields }
单点登录 -------------------------------------------
func (*SSOLoginReq) Descriptor
deprecated
func (*SSOLoginReq) Descriptor() ([]byte, []int)
Deprecated: Use SSOLoginReq.ProtoReflect.Descriptor instead.
func (*SSOLoginReq) GetAccount ¶
func (x *SSOLoginReq) GetAccount() string
func (*SSOLoginReq) GetPlatform ¶
func (x *SSOLoginReq) GetPlatform() string
func (*SSOLoginReq) GetToken ¶
func (x *SSOLoginReq) GetToken() string
func (*SSOLoginReq) ProtoMessage ¶
func (*SSOLoginReq) ProtoMessage()
func (*SSOLoginReq) ProtoReflect ¶
func (x *SSOLoginReq) ProtoReflect() protoreflect.Message
func (*SSOLoginReq) Reset ¶
func (x *SSOLoginReq) Reset()
func (*SSOLoginReq) String ¶
func (x *SSOLoginReq) String() string
func (*SSOLoginReq) Validate ¶
func (m *SSOLoginReq) Validate() error
Validate checks the field values on SSOLoginReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SSOLoginReq) ValidateAll ¶
func (m *SSOLoginReq) ValidateAll() error
ValidateAll checks the field values on SSOLoginReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SSOLoginReqMultiError, or nil if none found.
type SSOLoginReqMultiError ¶
type SSOLoginReqMultiError []error
SSOLoginReqMultiError is an error wrapping multiple validation errors returned by SSOLoginReq.ValidateAll() if the designated constraints aren't met.
func (SSOLoginReqMultiError) AllErrors ¶
func (m SSOLoginReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SSOLoginReqMultiError) Error ¶
func (m SSOLoginReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SSOLoginReqValidationError ¶
type SSOLoginReqValidationError struct {
// contains filtered or unexported fields
}
SSOLoginReqValidationError is the validation error returned by SSOLoginReq.Validate if the designated constraints aren't met.
func (SSOLoginReqValidationError) Cause ¶
func (e SSOLoginReqValidationError) Cause() error
Cause function returns cause value.
func (SSOLoginReqValidationError) Error ¶
func (e SSOLoginReqValidationError) Error() string
Error satisfies the builtin error interface
func (SSOLoginReqValidationError) ErrorName ¶
func (e SSOLoginReqValidationError) ErrorName() string
ErrorName returns error name.
func (SSOLoginReqValidationError) Field ¶
func (e SSOLoginReqValidationError) Field() string
Field function returns field value.
func (SSOLoginReqValidationError) Key ¶
func (e SSOLoginReqValidationError) Key() bool
Key function returns key value.
func (SSOLoginReqValidationError) Reason ¶
func (e SSOLoginReqValidationError) Reason() string
Reason function returns reason value.
type SendCodeReply ¶
type SendCodeReply struct { Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` // 有效时长 ExpiresAt int64 `protobuf:"varint,2,opt,name=expiresAt,proto3" json:"expiresAt,omitempty"` // 失效时间戳 Key string `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"` //验证码返回的key // contains filtered or unexported fields }
func (*SendCodeReply) Descriptor
deprecated
func (*SendCodeReply) Descriptor() ([]byte, []int)
Deprecated: Use SendCodeReply.ProtoReflect.Descriptor instead.
func (*SendCodeReply) GetExpiresAt ¶
func (x *SendCodeReply) GetExpiresAt() int64
func (*SendCodeReply) GetKey ¶
func (x *SendCodeReply) GetKey() string
func (*SendCodeReply) GetSeconds ¶
func (x *SendCodeReply) GetSeconds() int64
func (*SendCodeReply) ProtoMessage ¶
func (*SendCodeReply) ProtoMessage()
func (*SendCodeReply) ProtoReflect ¶
func (x *SendCodeReply) ProtoReflect() protoreflect.Message
func (*SendCodeReply) Reset ¶
func (x *SendCodeReply) Reset()
func (*SendCodeReply) String ¶
func (x *SendCodeReply) String() string
func (*SendCodeReply) Validate ¶
func (m *SendCodeReply) Validate() error
Validate checks the field values on SendCodeReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SendCodeReply) ValidateAll ¶
func (m *SendCodeReply) ValidateAll() error
ValidateAll checks the field values on SendCodeReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SendCodeReplyMultiError, or nil if none found.
type SendCodeReplyMultiError ¶
type SendCodeReplyMultiError []error
SendCodeReplyMultiError is an error wrapping multiple validation errors returned by SendCodeReply.ValidateAll() if the designated constraints aren't met.
func (SendCodeReplyMultiError) AllErrors ¶
func (m SendCodeReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SendCodeReplyMultiError) Error ¶
func (m SendCodeReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SendCodeReplyValidationError ¶
type SendCodeReplyValidationError struct {
// contains filtered or unexported fields
}
SendCodeReplyValidationError is the validation error returned by SendCodeReply.Validate if the designated constraints aren't met.
func (SendCodeReplyValidationError) Cause ¶
func (e SendCodeReplyValidationError) Cause() error
Cause function returns cause value.
func (SendCodeReplyValidationError) Error ¶
func (e SendCodeReplyValidationError) Error() string
Error satisfies the builtin error interface
func (SendCodeReplyValidationError) ErrorName ¶
func (e SendCodeReplyValidationError) ErrorName() string
ErrorName returns error name.
func (SendCodeReplyValidationError) Field ¶
func (e SendCodeReplyValidationError) Field() string
Field function returns field value.
func (SendCodeReplyValidationError) Key ¶
func (e SendCodeReplyValidationError) Key() bool
Key function returns key value.
func (SendCodeReplyValidationError) Reason ¶
func (e SendCodeReplyValidationError) Reason() string
Reason function returns reason value.
type SendCodeReq ¶
type SendCodeReq struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` CodeType CodeType `protobuf:"varint,2,opt,name=codeType,proto3,enum=api.user_center.auth.v2.CodeType" json:"codeType,omitempty"` //验证码类型 0:手机验证码 1:邮箱验证码 AreaCode int64 `protobuf:"varint,3,opt,name=areaCode,proto3" json:"areaCode,omitempty"` // contains filtered or unexported fields }
发送验证码
func (*SendCodeReq) Descriptor
deprecated
func (*SendCodeReq) Descriptor() ([]byte, []int)
Deprecated: Use SendCodeReq.ProtoReflect.Descriptor instead.
func (*SendCodeReq) GetAccount ¶
func (x *SendCodeReq) GetAccount() string
func (*SendCodeReq) GetAreaCode ¶
func (x *SendCodeReq) GetAreaCode() int64
func (*SendCodeReq) GetCodeType ¶
func (x *SendCodeReq) GetCodeType() CodeType
func (*SendCodeReq) ProtoMessage ¶
func (*SendCodeReq) ProtoMessage()
func (*SendCodeReq) ProtoReflect ¶
func (x *SendCodeReq) ProtoReflect() protoreflect.Message
func (*SendCodeReq) Reset ¶
func (x *SendCodeReq) Reset()
func (*SendCodeReq) String ¶
func (x *SendCodeReq) String() string
func (*SendCodeReq) Validate ¶
func (m *SendCodeReq) Validate() error
Validate checks the field values on SendCodeReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SendCodeReq) ValidateAll ¶
func (m *SendCodeReq) ValidateAll() error
ValidateAll checks the field values on SendCodeReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SendCodeReqMultiError, or nil if none found.
type SendCodeReqMultiError ¶
type SendCodeReqMultiError []error
SendCodeReqMultiError is an error wrapping multiple validation errors returned by SendCodeReq.ValidateAll() if the designated constraints aren't met.
func (SendCodeReqMultiError) AllErrors ¶
func (m SendCodeReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SendCodeReqMultiError) Error ¶
func (m SendCodeReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SendCodeReqValidationError ¶
type SendCodeReqValidationError struct {
// contains filtered or unexported fields
}
SendCodeReqValidationError is the validation error returned by SendCodeReq.Validate if the designated constraints aren't met.
func (SendCodeReqValidationError) Cause ¶
func (e SendCodeReqValidationError) Cause() error
Cause function returns cause value.
func (SendCodeReqValidationError) Error ¶
func (e SendCodeReqValidationError) Error() string
Error satisfies the builtin error interface
func (SendCodeReqValidationError) ErrorName ¶
func (e SendCodeReqValidationError) ErrorName() string
ErrorName returns error name.
func (SendCodeReqValidationError) Field ¶
func (e SendCodeReqValidationError) Field() string
Field function returns field value.
func (SendCodeReqValidationError) Key ¶
func (e SendCodeReqValidationError) Key() bool
Key function returns key value.
func (SendCodeReqValidationError) Reason ¶
func (e SendCodeReqValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) Binding ¶
func (UnimplementedAuthServer) Binding(context.Context, *BindingReq) (*BindingReply, error)
func (UnimplementedAuthServer) DestructionToken ¶
func (UnimplementedAuthServer) DestructionToken(context.Context, *DestructionTokenReq) (*DestructionTokenReply, error)
func (UnimplementedAuthServer) Login ¶
func (UnimplementedAuthServer) Login(context.Context, *LoginReq) (*LoginReply, error)
func (UnimplementedAuthServer) RealNameAuth ¶
func (UnimplementedAuthServer) RealNameAuth(context.Context, *RealNameAuthReq) (*RealNameAuthReply, error)
func (UnimplementedAuthServer) RefToken ¶
func (UnimplementedAuthServer) RefToken(context.Context, *RefTokenReq) (*RefTokenReply, error)
func (UnimplementedAuthServer) Register ¶
func (UnimplementedAuthServer) Register(context.Context, *RegisterReq) (*RegisterReply, error)
func (UnimplementedAuthServer) SendCode ¶
func (UnimplementedAuthServer) SendCode(context.Context, *SendCodeReq) (*SendCodeReply, error)
func (UnimplementedAuthServer) UpdatePassword ¶
func (UnimplementedAuthServer) UpdatePassword(context.Context, *UpdatePasswordReq) (*UpdatePasswordReply, error)
func (UnimplementedAuthServer) VerifyCode ¶
func (UnimplementedAuthServer) VerifyCode(context.Context, *VerifyCodeReq) (*VerifyCodeReply, error)
func (UnimplementedAuthServer) VerifyToken ¶
func (UnimplementedAuthServer) VerifyToken(context.Context, *VerifyTokenReq) (*VerifyTokenReply, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type UpdatePasswordReply ¶
type UpdatePasswordReply struct {
// contains filtered or unexported fields
}
func (*UpdatePasswordReply) Descriptor
deprecated
func (*UpdatePasswordReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordReply.ProtoReflect.Descriptor instead.
func (*UpdatePasswordReply) ProtoMessage ¶
func (*UpdatePasswordReply) ProtoMessage()
func (*UpdatePasswordReply) ProtoReflect ¶
func (x *UpdatePasswordReply) ProtoReflect() protoreflect.Message
func (*UpdatePasswordReply) Reset ¶
func (x *UpdatePasswordReply) Reset()
func (*UpdatePasswordReply) String ¶
func (x *UpdatePasswordReply) String() string
func (*UpdatePasswordReply) Validate ¶
func (m *UpdatePasswordReply) Validate() error
Validate checks the field values on UpdatePasswordReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdatePasswordReply) ValidateAll ¶
func (m *UpdatePasswordReply) ValidateAll() error
ValidateAll checks the field values on UpdatePasswordReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePasswordReplyMultiError, or nil if none found.
type UpdatePasswordReplyMultiError ¶
type UpdatePasswordReplyMultiError []error
UpdatePasswordReplyMultiError is an error wrapping multiple validation errors returned by UpdatePasswordReply.ValidateAll() if the designated constraints aren't met.
func (UpdatePasswordReplyMultiError) AllErrors ¶
func (m UpdatePasswordReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePasswordReplyMultiError) Error ¶
func (m UpdatePasswordReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePasswordReplyValidationError ¶
type UpdatePasswordReplyValidationError struct {
// contains filtered or unexported fields
}
UpdatePasswordReplyValidationError is the validation error returned by UpdatePasswordReply.Validate if the designated constraints aren't met.
func (UpdatePasswordReplyValidationError) Cause ¶
func (e UpdatePasswordReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdatePasswordReplyValidationError) Error ¶
func (e UpdatePasswordReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePasswordReplyValidationError) ErrorName ¶
func (e UpdatePasswordReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePasswordReplyValidationError) Field ¶
func (e UpdatePasswordReplyValidationError) Field() string
Field function returns field value.
func (UpdatePasswordReplyValidationError) Key ¶
func (e UpdatePasswordReplyValidationError) Key() bool
Key function returns key value.
func (UpdatePasswordReplyValidationError) Reason ¶
func (e UpdatePasswordReplyValidationError) Reason() string
Reason function returns reason value.
type UpdatePasswordReq ¶
type UpdatePasswordReq struct { UserId string `protobuf:"bytes,1,opt,name=userId,proto3" json:"userId,omitempty"` // 用户id Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 密码 Proof string `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"` // 登录凭证 可以是验证码或者密码 根据 AccountType 区分 CodeType CodeType `protobuf:"varint,4,opt,name=codeType,proto3,enum=api.user_center.auth.v2.CodeType" json:"codeType,omitempty"` // //验证码类型 0:手机验证码 1:邮箱验证码 Account string `protobuf:"bytes,5,opt,name=account,proto3" json:"account,omitempty"` //发送验证码的邮箱或手机账号 Key string `protobuf:"bytes,6,opt,name=key,proto3" json:"key,omitempty"` //验证码返回的key NodeId string `protobuf:"bytes,7,opt,name=nodeId,proto3" json:"nodeId,omitempty"` // 节点 id // contains filtered or unexported fields }
修改密码
func (*UpdatePasswordReq) Descriptor
deprecated
func (*UpdatePasswordReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordReq.ProtoReflect.Descriptor instead.
func (*UpdatePasswordReq) GetAccount ¶
func (x *UpdatePasswordReq) GetAccount() string
func (*UpdatePasswordReq) GetCodeType ¶
func (x *UpdatePasswordReq) GetCodeType() CodeType
func (*UpdatePasswordReq) GetKey ¶
func (x *UpdatePasswordReq) GetKey() string
func (*UpdatePasswordReq) GetNodeId ¶
func (x *UpdatePasswordReq) GetNodeId() string
func (*UpdatePasswordReq) GetPassword ¶
func (x *UpdatePasswordReq) GetPassword() string
func (*UpdatePasswordReq) GetProof ¶
func (x *UpdatePasswordReq) GetProof() string
func (*UpdatePasswordReq) GetUserId ¶
func (x *UpdatePasswordReq) GetUserId() string
func (*UpdatePasswordReq) ProtoMessage ¶
func (*UpdatePasswordReq) ProtoMessage()
func (*UpdatePasswordReq) ProtoReflect ¶
func (x *UpdatePasswordReq) ProtoReflect() protoreflect.Message
func (*UpdatePasswordReq) Reset ¶
func (x *UpdatePasswordReq) Reset()
func (*UpdatePasswordReq) String ¶
func (x *UpdatePasswordReq) String() string
func (*UpdatePasswordReq) Validate ¶
func (m *UpdatePasswordReq) Validate() error
Validate checks the field values on UpdatePasswordReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdatePasswordReq) ValidateAll ¶
func (m *UpdatePasswordReq) ValidateAll() error
ValidateAll checks the field values on UpdatePasswordReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePasswordReqMultiError, or nil if none found.
type UpdatePasswordReqMultiError ¶
type UpdatePasswordReqMultiError []error
UpdatePasswordReqMultiError is an error wrapping multiple validation errors returned by UpdatePasswordReq.ValidateAll() if the designated constraints aren't met.
func (UpdatePasswordReqMultiError) AllErrors ¶
func (m UpdatePasswordReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePasswordReqMultiError) Error ¶
func (m UpdatePasswordReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePasswordReqValidationError ¶
type UpdatePasswordReqValidationError struct {
// contains filtered or unexported fields
}
UpdatePasswordReqValidationError is the validation error returned by UpdatePasswordReq.Validate if the designated constraints aren't met.
func (UpdatePasswordReqValidationError) Cause ¶
func (e UpdatePasswordReqValidationError) Cause() error
Cause function returns cause value.
func (UpdatePasswordReqValidationError) Error ¶
func (e UpdatePasswordReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePasswordReqValidationError) ErrorName ¶
func (e UpdatePasswordReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePasswordReqValidationError) Field ¶
func (e UpdatePasswordReqValidationError) Field() string
Field function returns field value.
func (UpdatePasswordReqValidationError) Key ¶
func (e UpdatePasswordReqValidationError) Key() bool
Key function returns key value.
func (UpdatePasswordReqValidationError) Reason ¶
func (e UpdatePasswordReqValidationError) Reason() string
Reason function returns reason value.
type VerifyCodeReply ¶
type VerifyCodeReply struct { Pass bool `protobuf:"varint,1,opt,name=pass,proto3" json:"pass,omitempty"` // contains filtered or unexported fields }
func (*VerifyCodeReply) Descriptor
deprecated
func (*VerifyCodeReply) Descriptor() ([]byte, []int)
Deprecated: Use VerifyCodeReply.ProtoReflect.Descriptor instead.
func (*VerifyCodeReply) GetPass ¶
func (x *VerifyCodeReply) GetPass() bool
func (*VerifyCodeReply) ProtoMessage ¶
func (*VerifyCodeReply) ProtoMessage()
func (*VerifyCodeReply) ProtoReflect ¶
func (x *VerifyCodeReply) ProtoReflect() protoreflect.Message
func (*VerifyCodeReply) Reset ¶
func (x *VerifyCodeReply) Reset()
func (*VerifyCodeReply) String ¶
func (x *VerifyCodeReply) String() string
func (*VerifyCodeReply) Validate ¶
func (m *VerifyCodeReply) Validate() error
Validate checks the field values on VerifyCodeReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyCodeReply) ValidateAll ¶
func (m *VerifyCodeReply) ValidateAll() error
ValidateAll checks the field values on VerifyCodeReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyCodeReplyMultiError, or nil if none found.
type VerifyCodeReplyMultiError ¶
type VerifyCodeReplyMultiError []error
VerifyCodeReplyMultiError is an error wrapping multiple validation errors returned by VerifyCodeReply.ValidateAll() if the designated constraints aren't met.
func (VerifyCodeReplyMultiError) AllErrors ¶
func (m VerifyCodeReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyCodeReplyMultiError) Error ¶
func (m VerifyCodeReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyCodeReplyValidationError ¶
type VerifyCodeReplyValidationError struct {
// contains filtered or unexported fields
}
VerifyCodeReplyValidationError is the validation error returned by VerifyCodeReply.Validate if the designated constraints aren't met.
func (VerifyCodeReplyValidationError) Cause ¶
func (e VerifyCodeReplyValidationError) Cause() error
Cause function returns cause value.
func (VerifyCodeReplyValidationError) Error ¶
func (e VerifyCodeReplyValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyCodeReplyValidationError) ErrorName ¶
func (e VerifyCodeReplyValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyCodeReplyValidationError) Field ¶
func (e VerifyCodeReplyValidationError) Field() string
Field function returns field value.
func (VerifyCodeReplyValidationError) Key ¶
func (e VerifyCodeReplyValidationError) Key() bool
Key function returns key value.
func (VerifyCodeReplyValidationError) Reason ¶
func (e VerifyCodeReplyValidationError) Reason() string
Reason function returns reason value.
type VerifyCodeReq ¶
type VerifyCodeReq struct { Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` CodeType CodeType `protobuf:"varint,2,opt,name=codeType,proto3,enum=api.user_center.auth.v2.CodeType" json:"codeType,omitempty"` //验证码类型 0:手机验证码 1:邮箱验证码 Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` Key string `protobuf:"bytes,4,opt,name=key,proto3" json:"key,omitempty"` //验证码返回的key // contains filtered or unexported fields }
验证code
func (*VerifyCodeReq) Descriptor
deprecated
func (*VerifyCodeReq) Descriptor() ([]byte, []int)
Deprecated: Use VerifyCodeReq.ProtoReflect.Descriptor instead.
func (*VerifyCodeReq) GetAccount ¶
func (x *VerifyCodeReq) GetAccount() string
func (*VerifyCodeReq) GetCode ¶
func (x *VerifyCodeReq) GetCode() string
func (*VerifyCodeReq) GetCodeType ¶
func (x *VerifyCodeReq) GetCodeType() CodeType
func (*VerifyCodeReq) GetKey ¶
func (x *VerifyCodeReq) GetKey() string
func (*VerifyCodeReq) ProtoMessage ¶
func (*VerifyCodeReq) ProtoMessage()
func (*VerifyCodeReq) ProtoReflect ¶
func (x *VerifyCodeReq) ProtoReflect() protoreflect.Message
func (*VerifyCodeReq) Reset ¶
func (x *VerifyCodeReq) Reset()
func (*VerifyCodeReq) String ¶
func (x *VerifyCodeReq) String() string
func (*VerifyCodeReq) Validate ¶
func (m *VerifyCodeReq) Validate() error
Validate checks the field values on VerifyCodeReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyCodeReq) ValidateAll ¶
func (m *VerifyCodeReq) ValidateAll() error
ValidateAll checks the field values on VerifyCodeReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyCodeReqMultiError, or nil if none found.
type VerifyCodeReqMultiError ¶
type VerifyCodeReqMultiError []error
VerifyCodeReqMultiError is an error wrapping multiple validation errors returned by VerifyCodeReq.ValidateAll() if the designated constraints aren't met.
func (VerifyCodeReqMultiError) AllErrors ¶
func (m VerifyCodeReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyCodeReqMultiError) Error ¶
func (m VerifyCodeReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyCodeReqValidationError ¶
type VerifyCodeReqValidationError struct {
// contains filtered or unexported fields
}
VerifyCodeReqValidationError is the validation error returned by VerifyCodeReq.Validate if the designated constraints aren't met.
func (VerifyCodeReqValidationError) Cause ¶
func (e VerifyCodeReqValidationError) Cause() error
Cause function returns cause value.
func (VerifyCodeReqValidationError) Error ¶
func (e VerifyCodeReqValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyCodeReqValidationError) ErrorName ¶
func (e VerifyCodeReqValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyCodeReqValidationError) Field ¶
func (e VerifyCodeReqValidationError) Field() string
Field function returns field value.
func (VerifyCodeReqValidationError) Key ¶
func (e VerifyCodeReqValidationError) Key() bool
Key function returns key value.
func (VerifyCodeReqValidationError) Reason ¶
func (e VerifyCodeReqValidationError) Reason() string
Reason function returns reason value.
type VerifyTokenReply ¶
type VerifyTokenReply struct { AuthToken *AuthToken `protobuf:"bytes,1,opt,name=authToken,proto3" json:"authToken,omitempty"` // contains filtered or unexported fields }
func (*VerifyTokenReply) Descriptor
deprecated
func (*VerifyTokenReply) Descriptor() ([]byte, []int)
Deprecated: Use VerifyTokenReply.ProtoReflect.Descriptor instead.
func (*VerifyTokenReply) GetAuthToken ¶
func (x *VerifyTokenReply) GetAuthToken() *AuthToken
func (*VerifyTokenReply) ProtoMessage ¶
func (*VerifyTokenReply) ProtoMessage()
func (*VerifyTokenReply) ProtoReflect ¶
func (x *VerifyTokenReply) ProtoReflect() protoreflect.Message
func (*VerifyTokenReply) Reset ¶
func (x *VerifyTokenReply) Reset()
func (*VerifyTokenReply) String ¶
func (x *VerifyTokenReply) String() string
func (*VerifyTokenReply) Validate ¶
func (m *VerifyTokenReply) Validate() error
Validate checks the field values on VerifyTokenReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyTokenReply) ValidateAll ¶
func (m *VerifyTokenReply) ValidateAll() error
ValidateAll checks the field values on VerifyTokenReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyTokenReplyMultiError, or nil if none found.
type VerifyTokenReplyMultiError ¶
type VerifyTokenReplyMultiError []error
VerifyTokenReplyMultiError is an error wrapping multiple validation errors returned by VerifyTokenReply.ValidateAll() if the designated constraints aren't met.
func (VerifyTokenReplyMultiError) AllErrors ¶
func (m VerifyTokenReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyTokenReplyMultiError) Error ¶
func (m VerifyTokenReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyTokenReplyValidationError ¶
type VerifyTokenReplyValidationError struct {
// contains filtered or unexported fields
}
VerifyTokenReplyValidationError is the validation error returned by VerifyTokenReply.Validate if the designated constraints aren't met.
func (VerifyTokenReplyValidationError) Cause ¶
func (e VerifyTokenReplyValidationError) Cause() error
Cause function returns cause value.
func (VerifyTokenReplyValidationError) Error ¶
func (e VerifyTokenReplyValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyTokenReplyValidationError) ErrorName ¶
func (e VerifyTokenReplyValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyTokenReplyValidationError) Field ¶
func (e VerifyTokenReplyValidationError) Field() string
Field function returns field value.
func (VerifyTokenReplyValidationError) Key ¶
func (e VerifyTokenReplyValidationError) Key() bool
Key function returns key value.
func (VerifyTokenReplyValidationError) Reason ¶
func (e VerifyTokenReplyValidationError) Reason() string
Reason function returns reason value.
type VerifyTokenReq ¶
type VerifyTokenReq struct { AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"` // 验证 token AuthorizeType AuthorizeType `protobuf:"varint,2,opt,name=authorizeType,proto3,enum=api.user_center.auth.v2.AuthorizeType" json:"authorizeType,omitempty"` //认证类型;0 授权码 1 token // contains filtered or unexported fields }
token 验证
func (*VerifyTokenReq) Descriptor
deprecated
func (*VerifyTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use VerifyTokenReq.ProtoReflect.Descriptor instead.
func (*VerifyTokenReq) GetAccessToken ¶
func (x *VerifyTokenReq) GetAccessToken() string
func (*VerifyTokenReq) GetAuthorizeType ¶
func (x *VerifyTokenReq) GetAuthorizeType() AuthorizeType
func (*VerifyTokenReq) ProtoMessage ¶
func (*VerifyTokenReq) ProtoMessage()
func (*VerifyTokenReq) ProtoReflect ¶
func (x *VerifyTokenReq) ProtoReflect() protoreflect.Message
func (*VerifyTokenReq) Reset ¶
func (x *VerifyTokenReq) Reset()
func (*VerifyTokenReq) String ¶
func (x *VerifyTokenReq) String() string
func (*VerifyTokenReq) Validate ¶
func (m *VerifyTokenReq) Validate() error
Validate checks the field values on VerifyTokenReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*VerifyTokenReq) ValidateAll ¶
func (m *VerifyTokenReq) ValidateAll() error
ValidateAll checks the field values on VerifyTokenReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in VerifyTokenReqMultiError, or nil if none found.
type VerifyTokenReqMultiError ¶
type VerifyTokenReqMultiError []error
VerifyTokenReqMultiError is an error wrapping multiple validation errors returned by VerifyTokenReq.ValidateAll() if the designated constraints aren't met.
func (VerifyTokenReqMultiError) AllErrors ¶
func (m VerifyTokenReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VerifyTokenReqMultiError) Error ¶
func (m VerifyTokenReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VerifyTokenReqValidationError ¶
type VerifyTokenReqValidationError struct {
// contains filtered or unexported fields
}
VerifyTokenReqValidationError is the validation error returned by VerifyTokenReq.Validate if the designated constraints aren't met.
func (VerifyTokenReqValidationError) Cause ¶
func (e VerifyTokenReqValidationError) Cause() error
Cause function returns cause value.
func (VerifyTokenReqValidationError) Error ¶
func (e VerifyTokenReqValidationError) Error() string
Error satisfies the builtin error interface
func (VerifyTokenReqValidationError) ErrorName ¶
func (e VerifyTokenReqValidationError) ErrorName() string
ErrorName returns error name.
func (VerifyTokenReqValidationError) Field ¶
func (e VerifyTokenReqValidationError) Field() string
Field function returns field value.
func (VerifyTokenReqValidationError) Key ¶
func (e VerifyTokenReqValidationError) Key() bool
Key function returns key value.
func (VerifyTokenReqValidationError) Reason ¶
func (e VerifyTokenReqValidationError) Reason() string
Reason function returns reason value.