v2

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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)

View Source
var File_api_user_center_auth_v2_auth_error_proto protoreflect.FileDescriptor
View Source
var File_user_center_auth_v2_auth_proto protoreflect.FileDescriptor

Functions

func ErrorCallIdentifyInterfaceFailed

func ErrorCallIdentifyInterfaceFailed(format string, args ...interface{}) *errors.Error

身份认证接口调用失败

func ErrorEmailError

func ErrorEmailError(format string, args ...interface{}) *errors.Error

手机号错误

func ErrorEmailFormatIsCorrect

func ErrorEmailFormatIsCorrect(format string, args ...interface{}) *errors.Error

邮箱格式不正确

func ErrorGetPlatformNodeErr

func ErrorGetPlatformNodeErr(format string, args ...interface{}) *errors.Error

获取平台节点错误

func ErrorGetServersNodeErr

func ErrorGetServersNodeErr(format string, args ...interface{}) *errors.Error

获取服务节点错误

func ErrorIdCardHasBindToAnother

func ErrorIdCardHasBindToAnother(format string, args ...interface{}) *errors.Error

身份证号已被其他账号绑定

func ErrorInconsistentIdentityVerification

func ErrorInconsistentIdentityVerification(format string, args ...interface{}) *errors.Error

身份核验不一致

func ErrorInputPhoneNotIsUserBindingPhone

func ErrorInputPhoneNotIsUserBindingPhone(format string, args ...interface{}) *errors.Error

输入手机号与当前绑定手机号码不一致

func ErrorMailBindingError

func ErrorMailBindingError(format string, args ...interface{}) *errors.Error

邮箱绑定失败

func ErrorNoAvailableServers

func ErrorNoAvailableServers(format string, args ...interface{}) *errors.Error

无可用的节点信息

func ErrorPasswordIsEmpty

func ErrorPasswordIsEmpty(format string, args ...interface{}) *errors.Error

密码为空

func ErrorPhoneBindingError

func ErrorPhoneBindingError(format string, args ...interface{}) *errors.Error

手机号绑定失败

func ErrorPhoneError

func ErrorPhoneError(format string, args ...interface{}) *errors.Error

手机号错误

func ErrorRealNameFailed

func ErrorRealNameFailed(format string, args ...interface{}) *errors.Error

实名认证失败

func ErrorReasonAuthorizationCodeError

func ErrorReasonAuthorizationCodeError(format string, args ...interface{}) *errors.Error

生产授权码失败

func ErrorReasonCodeIsInvalid

func ErrorReasonCodeIsInvalid(format string, args ...interface{}) *errors.Error

验证码错误

func ErrorReasonCodeType

func ErrorReasonCodeType(format string, args ...interface{}) *errors.Error

验证码类型错误

func ErrorReasonGenerateTokenError

func ErrorReasonGenerateTokenError(format string, args ...interface{}) *errors.Error

token生成失败

func ErrorReasonLoginStatus

func ErrorReasonLoginStatus(format string, args ...interface{}) *errors.Error

登录失败,用户状态异常

func ErrorReasonNameOrPassword

func ErrorReasonNameOrPassword(format string, args ...interface{}) *errors.Error

用户名或者密码错误

func ErrorReasonParams

func ErrorReasonParams(format string, args ...interface{}) *errors.Error

为某个枚举单独设置错误码

func ErrorReasonSystem

func ErrorReasonSystem(format string, args ...interface{}) *errors.Error

系统错误

func ErrorReasonTokenDestruction

func ErrorReasonTokenDestruction(format string, args ...interface{}) *errors.Error

token 作废失败

func ErrorReasonTokenHasExpired

func ErrorReasonTokenHasExpired(format string, args ...interface{}) *errors.Error

token过期

func ErrorReasonTokenRefresh

func ErrorReasonTokenRefresh(format string, args ...interface{}) *errors.Error

token 刷新失败

func ErrorReasonTokenVerify

func ErrorReasonTokenVerify(format string, args ...interface{}) *errors.Error

token 验证失败

func ErrorReasonTokenVerifyError

func ErrorReasonTokenVerifyError(format string, args ...interface{}) *errors.Error

token验证失败

func ErrorReasonVerifyCodeError

func ErrorReasonVerifyCodeError(format string, args ...interface{}) *errors.Error

验证码错误

func ErrorRegisterAccountError

func ErrorRegisterAccountError(format string, args ...interface{}) *errors.Error

注册账号失败

func ErrorSendCodeError

func ErrorSendCodeError(format string, args ...interface{}) *errors.Error

发送验证码失败

func ErrorSyncUserInfoErr

func ErrorSyncUserInfoErr(format string, args ...interface{}) *errors.Error

同步用户信息失败

func ErrorTheEmailHasBeenBound

func ErrorTheEmailHasBeenBound(format string, args ...interface{}) *errors.Error

邮箱已被绑定

func ErrorThisShareCodeIsInvalid

func ErrorThisShareCodeIsInvalid(format string, args ...interface{}) *errors.Error

推广码无效

func ErrorUnsupportedPlatforms

func ErrorUnsupportedPlatforms(format string, args ...interface{}) *errors.Error

不支持的平台

func ErrorUnsupportedVerificationType

func ErrorUnsupportedVerificationType(format string, args ...interface{}) *errors.Error

不支持的验证方式

func ErrorUpdateAccountPasswordError

func ErrorUpdateAccountPasswordError(format string, args ...interface{}) *errors.Error

更新密码失败

func ErrorUserDisableLogin

func ErrorUserDisableLogin(format string, args ...interface{}) *errors.Error

用户禁用

func ErrorUserHadRealNamed

func ErrorUserHadRealNamed(format string, args ...interface{}) *errors.Error

用户已经实名认证过

func ErrorUserNotFond

func ErrorUserNotFond(format string, args ...interface{}) *errors.Error

用户不存在

func ErrorUserNotJoinNode

func ErrorUserNotJoinNode(format string, args ...interface{}) *errors.Error

用户未加入节点

func ErrorVerificationCodeHasExpired

func ErrorVerificationCodeHasExpired(format string, args ...interface{}) *errors.Error

验证码已过期

func IsCallIdentifyInterfaceFailed

func IsCallIdentifyInterfaceFailed(err error) bool

身份认证接口调用失败

func IsEmailError

func IsEmailError(err error) bool

手机号错误

func IsEmailFormatIsCorrect

func IsEmailFormatIsCorrect(err error) bool

邮箱格式不正确

func IsGetPlatformNodeErr

func IsGetPlatformNodeErr(err error) bool

获取平台节点错误

func IsGetServersNodeErr

func IsGetServersNodeErr(err error) bool

获取服务节点错误

func IsIdCardHasBindToAnother

func IsIdCardHasBindToAnother(err error) bool

身份证号已被其他账号绑定

func IsInconsistentIdentityVerification

func IsInconsistentIdentityVerification(err error) bool

身份核验不一致

func IsInputPhoneNotIsUserBindingPhone

func IsInputPhoneNotIsUserBindingPhone(err error) bool

输入手机号与当前绑定手机号码不一致

func IsMailBindingError

func IsMailBindingError(err error) bool

邮箱绑定失败

func IsNoAvailableServers

func IsNoAvailableServers(err error) bool

无可用的节点信息

func IsPasswordIsEmpty

func IsPasswordIsEmpty(err error) bool

密码为空

func IsPhoneBindingError

func IsPhoneBindingError(err error) bool

手机号绑定失败

func IsPhoneError

func IsPhoneError(err error) bool

手机号错误

func IsRealNameFailed

func IsRealNameFailed(err error) bool

实名认证失败

func IsReasonAuthorizationCodeError

func IsReasonAuthorizationCodeError(err error) bool

生产授权码失败

func IsReasonCodeIsInvalid

func IsReasonCodeIsInvalid(err error) bool

验证码错误

func IsReasonCodeType

func IsReasonCodeType(err error) bool

验证码类型错误

func IsReasonGenerateTokenError

func IsReasonGenerateTokenError(err error) bool

token生成失败

func IsReasonLoginStatus

func IsReasonLoginStatus(err error) bool

登录失败,用户状态异常

func IsReasonNameOrPassword

func IsReasonNameOrPassword(err error) bool

用户名或者密码错误

func IsReasonParams

func IsReasonParams(err error) bool

为某个枚举单独设置错误码

func IsReasonSystem

func IsReasonSystem(err error) bool

系统错误

func IsReasonTokenDestruction

func IsReasonTokenDestruction(err error) bool

token 作废失败

func IsReasonTokenHasExpired

func IsReasonTokenHasExpired(err error) bool

token过期

func IsReasonTokenRefresh

func IsReasonTokenRefresh(err error) bool

token 刷新失败

func IsReasonTokenVerify

func IsReasonTokenVerify(err error) bool

token 验证失败

func IsReasonTokenVerifyError

func IsReasonTokenVerifyError(err error) bool

token验证失败

func IsReasonVerifyCodeError

func IsReasonVerifyCodeError(err error) bool

验证码错误

func IsRegisterAccountError

func IsRegisterAccountError(err error) bool

注册账号失败

func IsSendCodeError

func IsSendCodeError(err error) bool

发送验证码失败

func IsSyncUserInfoErr

func IsSyncUserInfoErr(err error) bool

同步用户信息失败

func IsTheEmailHasBeenBound

func IsTheEmailHasBeenBound(err error) bool

邮箱已被绑定

func IsThisShareCodeIsInvalid

func IsThisShareCodeIsInvalid(err error) bool

推广码无效

func IsUnsupportedPlatforms

func IsUnsupportedPlatforms(err error) bool

不支持的平台

func IsUnsupportedVerificationType

func IsUnsupportedVerificationType(err error) bool

不支持的验证方式

func IsUpdateAccountPasswordError

func IsUpdateAccountPasswordError(err error) bool

更新密码失败

func IsUserDisableLogin

func IsUserDisableLogin(err error) bool

用户禁用

func IsUserHadRealNamed

func IsUserHadRealNamed(err error) bool

用户已经实名认证过

func IsUserNotFond

func IsUserNotFond(err error) bool

用户不存在

func IsUserNotJoinNode

func IsUserNotJoinNode(err error) bool

用户未加入节点

func IsVerificationCodeHasExpired

func IsVerificationCodeHasExpired(err error) bool

验证码已过期

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) 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

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) Descriptor() ([]byte, []int)

Deprecated: Use AuthToken.ProtoReflect.Descriptor instead.

func (*AuthToken) GetAccessToken

func (x *AuthToken) GetAccessToken() string

func (*AuthToken) GetExpiresAt

func (x *AuthToken) GetExpiresAt() int64

func (*AuthToken) GetOptions

func (x *AuthToken) GetOptions() map[string]string

func (*AuthToken) GetRefExpiresAt

func (x *AuthToken) GetRefExpiresAt() int64

func (*AuthToken) GetRefreshToken

func (x *AuthToken) GetRefreshToken() string

func (*AuthToken) GetServerCode

func (x *AuthToken) GetServerCode() string

func (*AuthToken) GetUserId

func (x *AuthToken) GetUserId() string

func (*AuthToken) ProtoMessage

func (*AuthToken) ProtoMessage()

func (*AuthToken) ProtoReflect

func (x *AuthToken) ProtoReflect() protoreflect.Message

func (*AuthToken) Reset

func (x *AuthToken) Reset()

func (*AuthToken) String

func (x *AuthToken) String() string

func (*AuthToken) Validate

func (m *AuthToken) Validate() error

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

func (m *AuthToken) ValidateAll() error

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

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) Enum

func (x AuthorizeType) Enum() *AuthorizeType

func (AuthorizeType) EnumDescriptor deprecated

func (AuthorizeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuthorizeType.Descriptor instead.

func (AuthorizeType) Number

func (AuthorizeType) String

func (x AuthorizeType) String() string

func (AuthorizeType) Type

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

Cause function returns cause value.

func (BindingReplyValidationError) Error

Error satisfies the builtin error interface

func (BindingReplyValidationError) ErrorName

func (e BindingReplyValidationError) ErrorName() string

ErrorName returns error name.

func (BindingReplyValidationError) Field

Field function returns field value.

func (BindingReplyValidationError) Key

Key function returns key value.

func (BindingReplyValidationError) Reason

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

Error satisfies the builtin error interface

func (BindingReqValidationError) ErrorName

func (e BindingReqValidationError) ErrorName() string

ErrorName returns error name.

func (BindingReqValidationError) Field

Field function returns field value.

func (BindingReqValidationError) Key

Key function returns key value.

func (BindingReqValidationError) Reason

func (e BindingReqValidationError) Reason() string

Reason function returns reason value.

type CodeType

type CodeType int32

验证码类型

const (
	CodeType_CODE_TYPE_PHONE CodeType = 0 // 手机验证码
	CodeType_CODE_TYPE_EMAIL CodeType = 1 // 邮箱验证码
)

func (CodeType) Descriptor

func (CodeType) Descriptor() protoreflect.EnumDescriptor

func (CodeType) Enum

func (x CodeType) Enum() *CodeType

func (CodeType) EnumDescriptor deprecated

func (CodeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CodeType.Descriptor instead.

func (CodeType) Number

func (x CodeType) Number() protoreflect.EnumNumber

func (CodeType) String

func (x CodeType) String() string

func (CodeType) Type

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

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

Cause function returns cause value.

func (DestructionTokenReplyValidationError) Error

Error satisfies the builtin error interface

func (DestructionTokenReplyValidationError) ErrorName

ErrorName returns error name.

func (DestructionTokenReplyValidationError) Field

Field function returns field value.

func (DestructionTokenReplyValidationError) Key

Key function returns key value.

func (DestructionTokenReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DestructionTokenReqValidationError) Error

Error satisfies the builtin error interface

func (DestructionTokenReqValidationError) ErrorName

ErrorName returns error name.

func (DestructionTokenReqValidationError) Field

Field function returns field value.

func (DestructionTokenReqValidationError) Key

Key function returns key value.

func (DestructionTokenReqValidationError) Reason

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) 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

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

Error satisfies the builtin error interface

func (LoginReplyValidationError) ErrorName

func (e LoginReplyValidationError) ErrorName() string

ErrorName returns error name.

func (LoginReplyValidationError) Field

Field function returns field value.

func (LoginReplyValidationError) Key

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) Descriptor() ([]byte, []int)

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetAccount

func (x *LoginReq) GetAccount() string

func (*LoginReq) GetAccountType

func (x *LoginReq) GetAccountType() AccountType

func (*LoginReq) GetKey

func (x *LoginReq) GetKey() string

func (*LoginReq) GetNode

func (x *LoginReq) GetNode() string

func (*LoginReq) GetPlatform

func (x *LoginReq) GetPlatform() string

func (*LoginReq) GetProof

func (x *LoginReq) GetProof() string

func (*LoginReq) GetResNodeInfo

func (x *LoginReq) GetResNodeInfo() bool

func (*LoginReq) GetResponseType

func (x *LoginReq) GetResponseType() AuthorizeType

func (*LoginReq) GetScope

func (x *LoginReq) GetScope() []string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

func (x *LoginReq) ProtoReflect() protoreflect.Message

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

func (*LoginReq) Validate

func (m *LoginReq) Validate() error

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

func (m *LoginReq) ValidateAll() error

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

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

Cause function returns cause value.

func (RealNameAuthReplyValidationError) Error

Error satisfies the builtin error interface

func (RealNameAuthReplyValidationError) ErrorName

ErrorName returns error name.

func (RealNameAuthReplyValidationError) Field

Field function returns field value.

func (RealNameAuthReplyValidationError) Key

Key function returns key value.

func (RealNameAuthReplyValidationError) Reason

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

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

Cause function returns cause value.

func (RealNameAuthReqValidationError) Error

Error satisfies the builtin error interface

func (RealNameAuthReqValidationError) ErrorName

func (e RealNameAuthReqValidationError) ErrorName() string

ErrorName returns error name.

func (RealNameAuthReqValidationError) Field

Field function returns field value.

func (RealNameAuthReqValidationError) Key

Key function returns key value.

func (RealNameAuthReqValidationError) Reason

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

Cause function returns cause value.

func (RefTokenReplyValidationError) Error

Error satisfies the builtin error interface

func (RefTokenReplyValidationError) ErrorName

func (e RefTokenReplyValidationError) ErrorName() string

ErrorName returns error name.

func (RefTokenReplyValidationError) Field

Field function returns field value.

func (RefTokenReplyValidationError) Key

Key function returns key value.

func (RefTokenReplyValidationError) Reason

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

Cause function returns cause value.

func (RefTokenReqValidationError) Error

Error satisfies the builtin error interface

func (RefTokenReqValidationError) ErrorName

func (e RefTokenReqValidationError) ErrorName() string

ErrorName returns error name.

func (RefTokenReqValidationError) Field

Field function returns field value.

func (RefTokenReqValidationError) Key

Key function returns key value.

func (RefTokenReqValidationError) Reason

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

Cause function returns cause value.

func (RegisterReplyValidationError) Error

Error satisfies the builtin error interface

func (RegisterReplyValidationError) ErrorName

func (e RegisterReplyValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterReplyValidationError) Field

Field function returns field value.

func (RegisterReplyValidationError) Key

Key function returns key value.

func (RegisterReplyValidationError) Reason

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"`                             // 区号
	ShareCode string    `protobuf:"bytes,8,opt,name=shareCode,proto3" json:"shareCode,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

Cause function returns cause value.

func (RegisterReqValidationError) Error

Error satisfies the builtin error interface

func (RegisterReqValidationError) ErrorName

func (e RegisterReqValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterReqValidationError) Field

Field function returns field value.

func (RegisterReqValidationError) Key

Key function returns key value.

func (RegisterReqValidationError) Reason

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) Enum

func (x RegisterType) Enum() *RegisterType

func (RegisterType) EnumDescriptor deprecated

func (RegisterType) EnumDescriptor() ([]byte, []int)

Deprecated: Use RegisterType.Descriptor instead.

func (RegisterType) Number

func (RegisterType) String

func (x RegisterType) String() string

func (RegisterType) Type

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

Cause function returns cause value.

func (SSOLoginReplyValidationError) Error

Error satisfies the builtin error interface

func (SSOLoginReplyValidationError) ErrorName

func (e SSOLoginReplyValidationError) ErrorName() string

ErrorName returns error name.

func (SSOLoginReplyValidationError) Field

Field function returns field value.

func (SSOLoginReplyValidationError) Key

Key function returns key value.

func (SSOLoginReplyValidationError) Reason

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

Cause function returns cause value.

func (SSOLoginReqValidationError) Error

Error satisfies the builtin error interface

func (SSOLoginReqValidationError) ErrorName

func (e SSOLoginReqValidationError) ErrorName() string

ErrorName returns error name.

func (SSOLoginReqValidationError) Field

Field function returns field value.

func (SSOLoginReqValidationError) Key

Key function returns key value.

func (SSOLoginReqValidationError) Reason

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

Cause function returns cause value.

func (SendCodeReplyValidationError) Error

Error satisfies the builtin error interface

func (SendCodeReplyValidationError) ErrorName

func (e SendCodeReplyValidationError) ErrorName() string

ErrorName returns error name.

func (SendCodeReplyValidationError) Field

Field function returns field value.

func (SendCodeReplyValidationError) Key

Key function returns key value.

func (SendCodeReplyValidationError) Reason

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

Cause function returns cause value.

func (SendCodeReqValidationError) Error

Error satisfies the builtin error interface

func (SendCodeReqValidationError) ErrorName

func (e SendCodeReqValidationError) ErrorName() string

ErrorName returns error name.

func (SendCodeReqValidationError) Field

Field function returns field value.

func (SendCodeReqValidationError) Key

Key function returns key value.

func (SendCodeReqValidationError) Reason

Reason function returns reason value.

type UnimplementedAuthServer

type UnimplementedAuthServer struct {
}

UnimplementedAuthServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServer) Binding

func (UnimplementedAuthServer) DestructionToken

func (UnimplementedAuthServer) Login

func (UnimplementedAuthServer) RealNameAuth

func (UnimplementedAuthServer) RefToken

func (UnimplementedAuthServer) Register

func (UnimplementedAuthServer) SendCode

func (UnimplementedAuthServer) UpdatePassword

func (UnimplementedAuthServer) VerifyCode

func (UnimplementedAuthServer) VerifyToken

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

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

Cause function returns cause value.

func (UpdatePasswordReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdatePasswordReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdatePasswordReplyValidationError) Field

Field function returns field value.

func (UpdatePasswordReplyValidationError) Key

Key function returns key value.

func (UpdatePasswordReplyValidationError) Reason

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

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

Cause function returns cause value.

func (UpdatePasswordReqValidationError) Error

Error satisfies the builtin error interface

func (UpdatePasswordReqValidationError) ErrorName

ErrorName returns error name.

func (UpdatePasswordReqValidationError) Field

Field function returns field value.

func (UpdatePasswordReqValidationError) Key

Key function returns key value.

func (UpdatePasswordReqValidationError) Reason

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

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

Cause function returns cause value.

func (VerifyCodeReplyValidationError) Error

Error satisfies the builtin error interface

func (VerifyCodeReplyValidationError) ErrorName

func (e VerifyCodeReplyValidationError) ErrorName() string

ErrorName returns error name.

func (VerifyCodeReplyValidationError) Field

Field function returns field value.

func (VerifyCodeReplyValidationError) Key

Key function returns key value.

func (VerifyCodeReplyValidationError) Reason

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

Cause function returns cause value.

func (VerifyCodeReqValidationError) Error

Error satisfies the builtin error interface

func (VerifyCodeReqValidationError) ErrorName

func (e VerifyCodeReqValidationError) ErrorName() string

ErrorName returns error name.

func (VerifyCodeReqValidationError) Field

Field function returns field value.

func (VerifyCodeReqValidationError) Key

Key function returns key value.

func (VerifyCodeReqValidationError) Reason

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

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

Cause function returns cause value.

func (VerifyTokenReplyValidationError) Error

Error satisfies the builtin error interface

func (VerifyTokenReplyValidationError) ErrorName

ErrorName returns error name.

func (VerifyTokenReplyValidationError) Field

Field function returns field value.

func (VerifyTokenReplyValidationError) Key

Key function returns key value.

func (VerifyTokenReplyValidationError) Reason

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

Cause function returns cause value.

func (VerifyTokenReqValidationError) Error

Error satisfies the builtin error interface

func (VerifyTokenReqValidationError) ErrorName

func (e VerifyTokenReqValidationError) ErrorName() string

ErrorName returns error name.

func (VerifyTokenReqValidationError) Field

Field function returns field value.

func (VerifyTokenReqValidationError) Key

Key function returns key value.

func (VerifyTokenReqValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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