Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorUnspecified(format string, args ...interface{}) *errors.Error
- func ErrorUserNotFound(format string, args ...interface{}) *errors.Error
- func IsUnspecified(err error) bool
- func IsUserNotFound(err error) bool
- func RegisterAuthServiceHTTPServer(s *http.Server, srv AuthServiceHTTPServer)
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterRoleServiceHTTPServer(s *http.Server, srv RoleServiceHTTPServer)
- func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)
- func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type AuthServiceClient
- type AuthServiceHTTPClient
- type AuthServiceHTTPClientImpl
- func (c *AuthServiceHTTPClientImpl) GetAuthInfo(ctx context.Context, in *GetAuthInfoRequest, opts ...http.CallOption) (*GetAuthInfoResponse, error)
- func (c *AuthServiceHTTPClientImpl) GetAuthProfile(ctx context.Context, in *GetAuthProfileRequest, opts ...http.CallOption) (*GetAuthProfileResponse, error)
- func (c *AuthServiceHTTPClientImpl) LoginByEmail(ctx context.Context, in *LoginByEmailRequest, opts ...http.CallOption) (*LoginResponse, error)
- func (c *AuthServiceHTTPClientImpl) LoginByPassword(ctx context.Context, in *LoginByPasswordRequest, opts ...http.CallOption) (*LoginResponse, error)
- func (c *AuthServiceHTTPClientImpl) LoginBySms(ctx context.Context, in *LoginBySmsRequest, opts ...http.CallOption) (*LoginResponse, error)
- func (c *AuthServiceHTTPClientImpl) Logout(ctx context.Context, in *LogoutRequest, opts ...http.CallOption) (*LogoutResponse, error)
- func (c *AuthServiceHTTPClientImpl) Register(ctx context.Context, in *RegisterRequest, opts ...http.CallOption) (*RegisterResponse, error)
- type AuthServiceHTTPServer
- type AuthServiceServer
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- func (m *CreateRoleRequest) Validate() error
- func (m *CreateRoleRequest) ValidateAll() error
- type CreateRoleRequestMultiError
- type CreateRoleRequestValidationError
- func (e CreateRoleRequestValidationError) Cause() error
- func (e CreateRoleRequestValidationError) Error() string
- func (e CreateRoleRequestValidationError) ErrorName() string
- func (e CreateRoleRequestValidationError) Field() string
- func (e CreateRoleRequestValidationError) Key() bool
- func (e CreateRoleRequestValidationError) Reason() string
- type CreateRoleResponse
- func (*CreateRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreateRoleResponse) ProtoMessage()
- func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRoleResponse) Reset()
- func (x *CreateRoleResponse) String() string
- func (m *CreateRoleResponse) Validate() error
- func (m *CreateRoleResponse) ValidateAll() error
- type CreateRoleResponseMultiError
- type CreateRoleResponseValidationError
- func (e CreateRoleResponseValidationError) Cause() error
- func (e CreateRoleResponseValidationError) Error() string
- func (e CreateRoleResponseValidationError) ErrorName() string
- func (e CreateRoleResponseValidationError) Field() string
- func (e CreateRoleResponseValidationError) Key() bool
- func (e CreateRoleResponseValidationError) Reason() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (*CreateUserRequest) ProtoMessage()
- func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
- func (x *CreateUserRequest) Reset()
- func (x *CreateUserRequest) String() string
- func (m *CreateUserRequest) Validate() error
- func (m *CreateUserRequest) ValidateAll() error
- type CreateUserRequestMultiError
- type CreateUserRequestValidationError
- func (e CreateUserRequestValidationError) Cause() error
- func (e CreateUserRequestValidationError) Error() string
- func (e CreateUserRequestValidationError) ErrorName() string
- func (e CreateUserRequestValidationError) Field() string
- func (e CreateUserRequestValidationError) Key() bool
- func (e CreateUserRequestValidationError) Reason() string
- type CreateUserResponse
- func (*CreateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*CreateUserResponse) ProtoMessage()
- func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
- func (x *CreateUserResponse) Reset()
- func (x *CreateUserResponse) String() string
- func (m *CreateUserResponse) Validate() error
- func (m *CreateUserResponse) ValidateAll() error
- type CreateUserResponseMultiError
- type CreateUserResponseValidationError
- func (e CreateUserResponseValidationError) Cause() error
- func (e CreateUserResponseValidationError) Error() string
- func (e CreateUserResponseValidationError) ErrorName() string
- func (e CreateUserResponseValidationError) Field() string
- func (e CreateUserResponseValidationError) Key() bool
- func (e CreateUserResponseValidationError) Reason() string
- type DeleteRoleRequest
- func (*DeleteRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (*DeleteRoleRequest) ProtoMessage()
- func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleRequest) Reset()
- func (x *DeleteRoleRequest) String() string
- func (m *DeleteRoleRequest) Validate() error
- func (m *DeleteRoleRequest) ValidateAll() error
- type DeleteRoleRequestMultiError
- type DeleteRoleRequestValidationError
- func (e DeleteRoleRequestValidationError) Cause() error
- func (e DeleteRoleRequestValidationError) Error() string
- func (e DeleteRoleRequestValidationError) ErrorName() string
- func (e DeleteRoleRequestValidationError) Field() string
- func (e DeleteRoleRequestValidationError) Key() bool
- func (e DeleteRoleRequestValidationError) Reason() string
- type DeleteRoleResponse
- func (*DeleteRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteRoleResponse) ProtoMessage()
- func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleResponse) Reset()
- func (x *DeleteRoleResponse) String() string
- func (m *DeleteRoleResponse) Validate() error
- func (m *DeleteRoleResponse) ValidateAll() error
- type DeleteRoleResponseMultiError
- type DeleteRoleResponseValidationError
- func (e DeleteRoleResponseValidationError) Cause() error
- func (e DeleteRoleResponseValidationError) Error() string
- func (e DeleteRoleResponseValidationError) ErrorName() string
- func (e DeleteRoleResponseValidationError) Field() string
- func (e DeleteRoleResponseValidationError) Key() bool
- func (e DeleteRoleResponseValidationError) Reason() string
- type DeleteUserRequest
- func (*DeleteUserRequest) Descriptor() ([]byte, []int)deprecated
- func (*DeleteUserRequest) ProtoMessage()
- func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUserRequest) Reset()
- func (x *DeleteUserRequest) String() string
- func (m *DeleteUserRequest) Validate() error
- func (m *DeleteUserRequest) ValidateAll() error
- type DeleteUserRequestMultiError
- type DeleteUserRequestValidationError
- func (e DeleteUserRequestValidationError) Cause() error
- func (e DeleteUserRequestValidationError) Error() string
- func (e DeleteUserRequestValidationError) ErrorName() string
- func (e DeleteUserRequestValidationError) Field() string
- func (e DeleteUserRequestValidationError) Key() bool
- func (e DeleteUserRequestValidationError) Reason() string
- type DeleteUserResponse
- func (*DeleteUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteUserResponse) ProtoMessage()
- func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUserResponse) Reset()
- func (x *DeleteUserResponse) String() string
- func (m *DeleteUserResponse) Validate() error
- func (m *DeleteUserResponse) ValidateAll() error
- type DeleteUserResponseMultiError
- type DeleteUserResponseValidationError
- func (e DeleteUserResponseValidationError) Cause() error
- func (e DeleteUserResponseValidationError) Error() string
- func (e DeleteUserResponseValidationError) ErrorName() string
- func (e DeleteUserResponseValidationError) Field() string
- func (e DeleteUserResponseValidationError) Key() bool
- func (e DeleteUserResponseValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetAuthInfoRequest
- func (*GetAuthInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetAuthInfoRequest) ProtoMessage()
- func (x *GetAuthInfoRequest) ProtoReflect() protoreflect.Message
- func (x *GetAuthInfoRequest) Reset()
- func (x *GetAuthInfoRequest) String() string
- func (m *GetAuthInfoRequest) Validate() error
- func (m *GetAuthInfoRequest) ValidateAll() error
- type GetAuthInfoRequestMultiError
- type GetAuthInfoRequestValidationError
- func (e GetAuthInfoRequestValidationError) Cause() error
- func (e GetAuthInfoRequestValidationError) Error() string
- func (e GetAuthInfoRequestValidationError) ErrorName() string
- func (e GetAuthInfoRequestValidationError) Field() string
- func (e GetAuthInfoRequestValidationError) Key() bool
- func (e GetAuthInfoRequestValidationError) Reason() string
- type GetAuthInfoResponse
- func (*GetAuthInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthInfoResponse) GetAvatar() string
- func (x *GetAuthInfoResponse) GetBirthday() string
- func (x *GetAuthInfoResponse) GetEmail() string
- func (x *GetAuthInfoResponse) GetGender() int32
- func (x *GetAuthInfoResponse) GetId() uint64
- func (x *GetAuthInfoResponse) GetName() string
- func (x *GetAuthInfoResponse) GetNickName() string
- func (x *GetAuthInfoResponse) GetPhone() string
- func (x *GetAuthInfoResponse) GetRealName() string
- func (x *GetAuthInfoResponse) GetRoles() []*Role
- func (x *GetAuthInfoResponse) GetState() int32
- func (*GetAuthInfoResponse) ProtoMessage()
- func (x *GetAuthInfoResponse) ProtoReflect() protoreflect.Message
- func (x *GetAuthInfoResponse) Reset()
- func (x *GetAuthInfoResponse) String() string
- func (m *GetAuthInfoResponse) Validate() error
- func (m *GetAuthInfoResponse) ValidateAll() error
- type GetAuthInfoResponseMultiError
- type GetAuthInfoResponseValidationError
- func (e GetAuthInfoResponseValidationError) Cause() error
- func (e GetAuthInfoResponseValidationError) Error() string
- func (e GetAuthInfoResponseValidationError) ErrorName() string
- func (e GetAuthInfoResponseValidationError) Field() string
- func (e GetAuthInfoResponseValidationError) Key() bool
- func (e GetAuthInfoResponseValidationError) Reason() string
- type GetAuthProfileRequest
- func (*GetAuthProfileRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetAuthProfileRequest) ProtoMessage()
- func (x *GetAuthProfileRequest) ProtoReflect() protoreflect.Message
- func (x *GetAuthProfileRequest) Reset()
- func (x *GetAuthProfileRequest) String() string
- func (m *GetAuthProfileRequest) Validate() error
- func (m *GetAuthProfileRequest) ValidateAll() error
- type GetAuthProfileRequestMultiError
- type GetAuthProfileRequestValidationError
- func (e GetAuthProfileRequestValidationError) Cause() error
- func (e GetAuthProfileRequestValidationError) Error() string
- func (e GetAuthProfileRequestValidationError) ErrorName() string
- func (e GetAuthProfileRequestValidationError) Field() string
- func (e GetAuthProfileRequestValidationError) Key() bool
- func (e GetAuthProfileRequestValidationError) Reason() string
- type GetAuthProfileResponse
- func (*GetAuthProfileResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAuthProfileResponse) GetRoles() []*Role
- func (x *GetAuthProfileResponse) GetUser() *User
- func (*GetAuthProfileResponse) ProtoMessage()
- func (x *GetAuthProfileResponse) ProtoReflect() protoreflect.Message
- func (x *GetAuthProfileResponse) Reset()
- func (x *GetAuthProfileResponse) String() string
- func (m *GetAuthProfileResponse) Validate() error
- func (m *GetAuthProfileResponse) ValidateAll() error
- type GetAuthProfileResponseMultiError
- type GetAuthProfileResponseValidationError
- func (e GetAuthProfileResponseValidationError) Cause() error
- func (e GetAuthProfileResponseValidationError) Error() string
- func (e GetAuthProfileResponseValidationError) ErrorName() string
- func (e GetAuthProfileResponseValidationError) Field() string
- func (e GetAuthProfileResponseValidationError) Key() bool
- func (e GetAuthProfileResponseValidationError) Reason() string
- type GetRoleRequest
- func (*GetRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetRoleRequest) ProtoMessage()
- func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
- func (x *GetRoleRequest) Reset()
- func (x *GetRoleRequest) String() string
- func (m *GetRoleRequest) Validate() error
- func (m *GetRoleRequest) ValidateAll() error
- type GetRoleRequestMultiError
- type GetRoleRequestValidationError
- func (e GetRoleRequestValidationError) Cause() error
- func (e GetRoleRequestValidationError) Error() string
- func (e GetRoleRequestValidationError) ErrorName() string
- func (e GetRoleRequestValidationError) Field() string
- func (e GetRoleRequestValidationError) Key() bool
- func (e GetRoleRequestValidationError) Reason() string
- type GetRoleResponse
- func (*GetRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetRoleResponse) ProtoMessage()
- func (x *GetRoleResponse) ProtoReflect() protoreflect.Message
- func (x *GetRoleResponse) Reset()
- func (x *GetRoleResponse) String() string
- func (m *GetRoleResponse) Validate() error
- func (m *GetRoleResponse) ValidateAll() error
- type GetRoleResponseMultiError
- type GetRoleResponseValidationError
- func (e GetRoleResponseValidationError) Cause() error
- func (e GetRoleResponseValidationError) Error() string
- func (e GetRoleResponseValidationError) ErrorName() string
- func (e GetRoleResponseValidationError) Field() string
- func (e GetRoleResponseValidationError) Key() bool
- func (e GetRoleResponseValidationError) Reason() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
- func (m *GetUserRequest) Validate() error
- func (m *GetUserRequest) ValidateAll() error
- type GetUserRequestMultiError
- type GetUserRequestValidationError
- func (e GetUserRequestValidationError) Cause() error
- func (e GetUserRequestValidationError) Error() string
- func (e GetUserRequestValidationError) ErrorName() string
- func (e GetUserRequestValidationError) Field() string
- func (e GetUserRequestValidationError) Key() bool
- func (e GetUserRequestValidationError) Reason() string
- type GetUserResponse
- func (*GetUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*GetUserResponse) ProtoMessage()
- func (x *GetUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetUserResponse) Reset()
- func (x *GetUserResponse) String() string
- func (m *GetUserResponse) Validate() error
- func (m *GetUserResponse) ValidateAll() error
- type GetUserResponseMultiError
- type GetUserResponseValidationError
- func (e GetUserResponseValidationError) Cause() error
- func (e GetUserResponseValidationError) Error() string
- func (e GetUserResponseValidationError) ErrorName() string
- func (e GetUserResponseValidationError) Field() string
- func (e GetUserResponseValidationError) Key() bool
- func (e GetUserResponseValidationError) Reason() string
- type ListRoleRequest
- func (*ListRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListRoleRequest) ProtoMessage()
- func (x *ListRoleRequest) ProtoReflect() protoreflect.Message
- func (x *ListRoleRequest) Reset()
- func (x *ListRoleRequest) String() string
- func (m *ListRoleRequest) Validate() error
- func (m *ListRoleRequest) ValidateAll() error
- type ListRoleRequestMultiError
- type ListRoleRequestValidationError
- func (e ListRoleRequestValidationError) Cause() error
- func (e ListRoleRequestValidationError) Error() string
- func (e ListRoleRequestValidationError) ErrorName() string
- func (e ListRoleRequestValidationError) Field() string
- func (e ListRoleRequestValidationError) Key() bool
- func (e ListRoleRequestValidationError) Reason() string
- type ListRoleResponse
- func (*ListRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (*ListRoleResponse) ProtoMessage()
- func (x *ListRoleResponse) ProtoReflect() protoreflect.Message
- func (x *ListRoleResponse) Reset()
- func (x *ListRoleResponse) String() string
- func (m *ListRoleResponse) Validate() error
- func (m *ListRoleResponse) ValidateAll() error
- type ListRoleResponseMultiError
- type ListRoleResponseValidationError
- func (e ListRoleResponseValidationError) Cause() error
- func (e ListRoleResponseValidationError) Error() string
- func (e ListRoleResponseValidationError) ErrorName() string
- func (e ListRoleResponseValidationError) Field() string
- func (e ListRoleResponseValidationError) Key() bool
- func (e ListRoleResponseValidationError) Reason() string
- type ListUserRequest
- func (*ListUserRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListUserRequest) ProtoMessage()
- func (x *ListUserRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserRequest) Reset()
- func (x *ListUserRequest) String() string
- func (m *ListUserRequest) Validate() error
- func (m *ListUserRequest) ValidateAll() error
- type ListUserRequestMultiError
- type ListUserRequestValidationError
- func (e ListUserRequestValidationError) Cause() error
- func (e ListUserRequestValidationError) Error() string
- func (e ListUserRequestValidationError) ErrorName() string
- func (e ListUserRequestValidationError) Field() string
- func (e ListUserRequestValidationError) Key() bool
- func (e ListUserRequestValidationError) Reason() string
- type ListUserResponse
- func (*ListUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*ListUserResponse) ProtoMessage()
- func (x *ListUserResponse) ProtoReflect() protoreflect.Message
- func (x *ListUserResponse) Reset()
- func (x *ListUserResponse) String() string
- func (m *ListUserResponse) Validate() error
- func (m *ListUserResponse) ValidateAll() error
- type ListUserResponseMultiError
- type ListUserResponseValidationError
- func (e ListUserResponseValidationError) Cause() error
- func (e ListUserResponseValidationError) Error() string
- func (e ListUserResponseValidationError) ErrorName() string
- func (e ListUserResponseValidationError) Field() string
- func (e ListUserResponseValidationError) Key() bool
- func (e ListUserResponseValidationError) Reason() string
- type LoginByEmailRequest
- func (*LoginByEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginByEmailRequest) GetAuth() *LoginByEmailRequest_Auth
- func (x *LoginByEmailRequest) GetDomain() string
- func (*LoginByEmailRequest) ProtoMessage()
- func (x *LoginByEmailRequest) ProtoReflect() protoreflect.Message
- func (x *LoginByEmailRequest) Reset()
- func (x *LoginByEmailRequest) String() string
- func (m *LoginByEmailRequest) Validate() error
- func (m *LoginByEmailRequest) ValidateAll() error
- type LoginByEmailRequestMultiError
- type LoginByEmailRequestValidationError
- func (e LoginByEmailRequestValidationError) Cause() error
- func (e LoginByEmailRequestValidationError) Error() string
- func (e LoginByEmailRequestValidationError) ErrorName() string
- func (e LoginByEmailRequestValidationError) Field() string
- func (e LoginByEmailRequestValidationError) Key() bool
- func (e LoginByEmailRequestValidationError) Reason() string
- type LoginByEmailRequest_Auth
- func (*LoginByEmailRequest_Auth) Descriptor() ([]byte, []int)deprecated
- func (x *LoginByEmailRequest_Auth) GetCode() string
- func (x *LoginByEmailRequest_Auth) GetEmail() string
- func (*LoginByEmailRequest_Auth) ProtoMessage()
- func (x *LoginByEmailRequest_Auth) ProtoReflect() protoreflect.Message
- func (x *LoginByEmailRequest_Auth) Reset()
- func (x *LoginByEmailRequest_Auth) String() string
- func (m *LoginByEmailRequest_Auth) Validate() error
- func (m *LoginByEmailRequest_Auth) ValidateAll() error
- type LoginByEmailRequest_AuthMultiError
- type LoginByEmailRequest_AuthValidationError
- func (e LoginByEmailRequest_AuthValidationError) Cause() error
- func (e LoginByEmailRequest_AuthValidationError) Error() string
- func (e LoginByEmailRequest_AuthValidationError) ErrorName() string
- func (e LoginByEmailRequest_AuthValidationError) Field() string
- func (e LoginByEmailRequest_AuthValidationError) Key() bool
- func (e LoginByEmailRequest_AuthValidationError) Reason() string
- type LoginByPasswordRequest
- func (*LoginByPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginByPasswordRequest) GetAuth() *LoginByPasswordRequest_Auth
- func (x *LoginByPasswordRequest) GetDomain() string
- func (*LoginByPasswordRequest) ProtoMessage()
- func (x *LoginByPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *LoginByPasswordRequest) Reset()
- func (x *LoginByPasswordRequest) String() string
- func (m *LoginByPasswordRequest) Validate() error
- func (m *LoginByPasswordRequest) ValidateAll() error
- type LoginByPasswordRequestMultiError
- type LoginByPasswordRequestValidationError
- func (e LoginByPasswordRequestValidationError) Cause() error
- func (e LoginByPasswordRequestValidationError) Error() string
- func (e LoginByPasswordRequestValidationError) ErrorName() string
- func (e LoginByPasswordRequestValidationError) Field() string
- func (e LoginByPasswordRequestValidationError) Key() bool
- func (e LoginByPasswordRequestValidationError) Reason() string
- type LoginByPasswordRequest_Auth
- func (*LoginByPasswordRequest_Auth) Descriptor() ([]byte, []int)deprecated
- func (x *LoginByPasswordRequest_Auth) GetAccount() string
- func (x *LoginByPasswordRequest_Auth) GetPassword() string
- func (*LoginByPasswordRequest_Auth) ProtoMessage()
- func (x *LoginByPasswordRequest_Auth) ProtoReflect() protoreflect.Message
- func (x *LoginByPasswordRequest_Auth) Reset()
- func (x *LoginByPasswordRequest_Auth) String() string
- func (m *LoginByPasswordRequest_Auth) Validate() error
- func (m *LoginByPasswordRequest_Auth) ValidateAll() error
- type LoginByPasswordRequest_AuthMultiError
- type LoginByPasswordRequest_AuthValidationError
- func (e LoginByPasswordRequest_AuthValidationError) Cause() error
- func (e LoginByPasswordRequest_AuthValidationError) Error() string
- func (e LoginByPasswordRequest_AuthValidationError) ErrorName() string
- func (e LoginByPasswordRequest_AuthValidationError) Field() string
- func (e LoginByPasswordRequest_AuthValidationError) Key() bool
- func (e LoginByPasswordRequest_AuthValidationError) Reason() string
- type LoginBySmsRequest
- func (*LoginBySmsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginBySmsRequest) GetAuth() *LoginBySmsRequest_Auth
- func (x *LoginBySmsRequest) GetDomain() string
- func (*LoginBySmsRequest) ProtoMessage()
- func (x *LoginBySmsRequest) ProtoReflect() protoreflect.Message
- func (x *LoginBySmsRequest) Reset()
- func (x *LoginBySmsRequest) String() string
- func (m *LoginBySmsRequest) Validate() error
- func (m *LoginBySmsRequest) ValidateAll() error
- type LoginBySmsRequestMultiError
- type LoginBySmsRequestValidationError
- func (e LoginBySmsRequestValidationError) Cause() error
- func (e LoginBySmsRequestValidationError) Error() string
- func (e LoginBySmsRequestValidationError) ErrorName() string
- func (e LoginBySmsRequestValidationError) Field() string
- func (e LoginBySmsRequestValidationError) Key() bool
- func (e LoginBySmsRequestValidationError) Reason() string
- type LoginBySmsRequest_Auth
- func (*LoginBySmsRequest_Auth) Descriptor() ([]byte, []int)deprecated
- func (x *LoginBySmsRequest_Auth) GetCode() string
- func (x *LoginBySmsRequest_Auth) GetPhone() string
- func (*LoginBySmsRequest_Auth) ProtoMessage()
- func (x *LoginBySmsRequest_Auth) ProtoReflect() protoreflect.Message
- func (x *LoginBySmsRequest_Auth) Reset()
- func (x *LoginBySmsRequest_Auth) String() string
- func (m *LoginBySmsRequest_Auth) Validate() error
- func (m *LoginBySmsRequest_Auth) ValidateAll() error
- type LoginBySmsRequest_AuthMultiError
- type LoginBySmsRequest_AuthValidationError
- func (e LoginBySmsRequest_AuthValidationError) Cause() error
- func (e LoginBySmsRequest_AuthValidationError) Error() string
- func (e LoginBySmsRequest_AuthValidationError) ErrorName() string
- func (e LoginBySmsRequest_AuthValidationError) Field() string
- func (e LoginBySmsRequest_AuthValidationError) Key() bool
- func (e LoginBySmsRequest_AuthValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetExpireTime() *timestamppb.Timestamp
- func (x *LoginResponse) GetRefreshToken() string
- func (x *LoginResponse) GetToken() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type LogoutRequest
- func (*LogoutRequest) Descriptor() ([]byte, []int)deprecated
- func (*LogoutRequest) ProtoMessage()
- func (x *LogoutRequest) ProtoReflect() protoreflect.Message
- func (x *LogoutRequest) Reset()
- func (x *LogoutRequest) String() string
- func (m *LogoutRequest) Validate() error
- func (m *LogoutRequest) ValidateAll() error
- type LogoutRequestMultiError
- type LogoutRequestValidationError
- func (e LogoutRequestValidationError) Cause() error
- func (e LogoutRequestValidationError) Error() string
- func (e LogoutRequestValidationError) ErrorName() string
- func (e LogoutRequestValidationError) Field() string
- func (e LogoutRequestValidationError) Key() bool
- func (e LogoutRequestValidationError) Reason() string
- type LogoutResponse
- func (*LogoutResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LogoutResponse) GetCode() int32
- func (x *LogoutResponse) GetMessage() string
- func (x *LogoutResponse) GetResult() *anypb.Any
- func (x *LogoutResponse) GetType() string
- func (*LogoutResponse) ProtoMessage()
- func (x *LogoutResponse) ProtoReflect() protoreflect.Message
- func (x *LogoutResponse) Reset()
- func (x *LogoutResponse) String() string
- func (m *LogoutResponse) Validate() error
- func (m *LogoutResponse) ValidateAll() error
- type LogoutResponseMultiError
- type LogoutResponseValidationError
- func (e LogoutResponseValidationError) Cause() error
- func (e LogoutResponseValidationError) Error() string
- func (e LogoutResponseValidationError) ErrorName() string
- func (e LogoutResponseValidationError) Field() string
- func (e LogoutResponseValidationError) Key() bool
- func (e LogoutResponseValidationError) Reason() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetAuth() *RegisterRequest_Auth
- func (x *RegisterRequest) GetDomain() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- func (m *RegisterRequest) Validate() error
- func (m *RegisterRequest) ValidateAll() error
- type RegisterRequestMultiError
- type RegisterRequestValidationError
- func (e RegisterRequestValidationError) Cause() error
- func (e RegisterRequestValidationError) Error() string
- func (e RegisterRequestValidationError) ErrorName() string
- func (e RegisterRequestValidationError) Field() string
- func (e RegisterRequestValidationError) Key() bool
- func (e RegisterRequestValidationError) Reason() string
- type RegisterRequest_Auth
- func (*RegisterRequest_Auth) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest_Auth) GetName() string
- func (x *RegisterRequest_Auth) GetPassword() string
- func (x *RegisterRequest_Auth) GetPhone() string
- func (*RegisterRequest_Auth) ProtoMessage()
- func (x *RegisterRequest_Auth) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest_Auth) Reset()
- func (x *RegisterRequest_Auth) String() string
- func (m *RegisterRequest_Auth) Validate() error
- func (m *RegisterRequest_Auth) ValidateAll() error
- type RegisterRequest_AuthMultiError
- type RegisterRequest_AuthValidationError
- func (e RegisterRequest_AuthValidationError) Cause() error
- func (e RegisterRequest_AuthValidationError) Error() string
- func (e RegisterRequest_AuthValidationError) ErrorName() string
- func (e RegisterRequest_AuthValidationError) Field() string
- func (e RegisterRequest_AuthValidationError) Key() bool
- func (e RegisterRequest_AuthValidationError) Reason() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetCode() int32
- func (x *RegisterResponse) GetMessage() string
- func (x *RegisterResponse) GetResult() *anypb.Any
- func (x *RegisterResponse) GetType() string
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- func (m *RegisterResponse) Validate() error
- func (m *RegisterResponse) ValidateAll() error
- type RegisterResponseMultiError
- type RegisterResponseValidationError
- func (e RegisterResponseValidationError) Cause() error
- func (e RegisterResponseValidationError) Error() string
- func (e RegisterResponseValidationError) ErrorName() string
- func (e RegisterResponseValidationError) Field() string
- func (e RegisterResponseValidationError) Key() bool
- func (e RegisterResponseValidationError) Reason() string
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetCreatedAt() *timestamppb.Timestamp
- func (x *Role) GetDataScope() int32
- func (x *Role) GetDefaultRouter() string
- func (x *Role) GetDeptCheckStrictly() int32
- func (x *Role) GetId() uint64
- func (x *Role) GetMenuCheckStrictly() int32
- func (x *Role) GetName() string
- func (x *Role) GetRemark() string
- func (x *Role) GetSort() int32
- func (x *Role) GetState() int32
- func (x *Role) GetUpdatedAt() *timestamppb.Timestamp
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- func (m *Role) Validate() error
- func (m *Role) ValidateAll() error
- type RoleMultiError
- type RoleServiceClient
- type RoleServiceHTTPClient
- type RoleServiceHTTPClientImpl
- type RoleServiceHTTPServer
- type RoleServiceServer
- type RoleValidationError
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) GetAuthInfo(context.Context, *GetAuthInfoRequest) (*GetAuthInfoResponse, error)
- func (UnimplementedAuthServiceServer) GetAuthProfile(context.Context, *GetAuthProfileRequest) (*GetAuthProfileResponse, error)
- func (UnimplementedAuthServiceServer) LoginByEmail(context.Context, *LoginByEmailRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) LoginByPassword(context.Context, *LoginByPasswordRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) LoginBySms(context.Context, *LoginBySmsRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
- func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- type UnimplementedRoleServiceServer
- func (UnimplementedRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
- func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
- func (UnimplementedRoleServiceServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
- func (UnimplementedRoleServiceServer) ListRole(context.Context, *ListRoleRequest) (*ListRoleResponse, error)
- func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
- func (UnimplementedUserServiceServer) ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
- type UnsafeAuthServiceServer
- type UnsafeRoleServiceServer
- type UnsafeUserServiceServer
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- func (m *UpdateRoleRequest) Validate() error
- func (m *UpdateRoleRequest) ValidateAll() error
- type UpdateRoleRequestMultiError
- type UpdateRoleRequestValidationError
- func (e UpdateRoleRequestValidationError) Cause() error
- func (e UpdateRoleRequestValidationError) Error() string
- func (e UpdateRoleRequestValidationError) ErrorName() string
- func (e UpdateRoleRequestValidationError) Field() string
- func (e UpdateRoleRequestValidationError) Key() bool
- func (e UpdateRoleRequestValidationError) Reason() string
- type UpdateRoleResponse
- func (*UpdateRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateRoleResponse) ProtoMessage()
- func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleResponse) Reset()
- func (x *UpdateRoleResponse) String() string
- func (m *UpdateRoleResponse) Validate() error
- func (m *UpdateRoleResponse) ValidateAll() error
- type UpdateRoleResponseMultiError
- type UpdateRoleResponseValidationError
- func (e UpdateRoleResponseValidationError) Cause() error
- func (e UpdateRoleResponseValidationError) Error() string
- func (e UpdateRoleResponseValidationError) ErrorName() string
- func (e UpdateRoleResponseValidationError) Field() string
- func (e UpdateRoleResponseValidationError) Key() bool
- func (e UpdateRoleResponseValidationError) Reason() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) Validate() error
- func (m *UpdateUserRequest) ValidateAll() error
- type UpdateUserRequestMultiError
- type UpdateUserRequestValidationError
- func (e UpdateUserRequestValidationError) Cause() error
- func (e UpdateUserRequestValidationError) Error() string
- func (e UpdateUserRequestValidationError) ErrorName() string
- func (e UpdateUserRequestValidationError) Field() string
- func (e UpdateUserRequestValidationError) Key() bool
- func (e UpdateUserRequestValidationError) Reason() string
- type UpdateUserResponse
- func (*UpdateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateUserResponse) ProtoMessage()
- func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateUserResponse) Reset()
- func (x *UpdateUserResponse) String() string
- func (m *UpdateUserResponse) Validate() error
- func (m *UpdateUserResponse) ValidateAll() error
- type UpdateUserResponseMultiError
- type UpdateUserResponseValidationError
- func (e UpdateUserResponseValidationError) Cause() error
- func (e UpdateUserResponseValidationError) Error() string
- func (e UpdateUserResponseValidationError) ErrorName() string
- func (e UpdateUserResponseValidationError) Field() string
- func (e UpdateUserResponseValidationError) Key() bool
- func (e UpdateUserResponseValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAvatar() string
- func (x *User) GetBirthday() string
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetGender() int32
- func (x *User) GetId() uint64
- func (x *User) GetName() string
- func (x *User) GetNickName() string
- func (x *User) GetPhone() string
- func (x *User) GetRealName() string
- func (x *User) GetState() int32
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- type UserMultiError
- type UserServiceClient
- type UserServiceHTTPClient
- type UserServiceHTTPClientImpl
- type UserServiceHTTPServer
- type UserServiceServer
- type UserValidationError
Constants ¶
const ( AuthService_Logout_FullMethodName = "/saasdesk.service.v1.AuthService/Logout" AuthService_Register_FullMethodName = "/saasdesk.service.v1.AuthService/Register" AuthService_LoginByPassword_FullMethodName = "/saasdesk.service.v1.AuthService/LoginByPassword" AuthService_LoginBySms_FullMethodName = "/saasdesk.service.v1.AuthService/LoginBySms" AuthService_LoginByEmail_FullMethodName = "/saasdesk.service.v1.AuthService/LoginByEmail" AuthService_GetAuthInfo_FullMethodName = "/saasdesk.service.v1.AuthService/GetAuthInfo" AuthService_GetAuthProfile_FullMethodName = "/saasdesk.service.v1.AuthService/GetAuthProfile" )
const ( RoleService_CreateRole_FullMethodName = "/saasdesk.service.v1.RoleService/CreateRole" RoleService_UpdateRole_FullMethodName = "/saasdesk.service.v1.RoleService/UpdateRole" RoleService_DeleteRole_FullMethodName = "/saasdesk.service.v1.RoleService/DeleteRole" RoleService_GetRole_FullMethodName = "/saasdesk.service.v1.RoleService/GetRole" RoleService_ListRole_FullMethodName = "/saasdesk.service.v1.RoleService/ListRole" )
const ( UserService_UpdateUser_FullMethodName = "/saasdesk.service.v1.UserService/UpdateUser" UserService_DeleteUser_FullMethodName = "/saasdesk.service.v1.UserService/DeleteUser" UserService_GetUser_FullMethodName = "/saasdesk.service.v1.UserService/GetUser" UserService_ListUser_FullMethodName = "/saasdesk.service.v1.UserService/ListUser" )
const OperationAuthServiceGetAuthInfo = "/saasdesk.service.v1.AuthService/GetAuthInfo"
const OperationAuthServiceGetAuthProfile = "/saasdesk.service.v1.AuthService/GetAuthProfile"
const OperationAuthServiceLoginByEmail = "/saasdesk.service.v1.AuthService/LoginByEmail"
const OperationAuthServiceLoginByPassword = "/saasdesk.service.v1.AuthService/LoginByPassword"
const OperationAuthServiceLoginBySms = "/saasdesk.service.v1.AuthService/LoginBySms"
const OperationAuthServiceLogout = "/saasdesk.service.v1.AuthService/Logout"
const OperationAuthServiceRegister = "/saasdesk.service.v1.AuthService/Register"
const OperationRoleServiceCreateRole = "/saasdesk.service.v1.RoleService/CreateRole"
const OperationUserServiceUpdateUser = "/saasdesk.service.v1.UserService/UpdateUser"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "UNSPECIFIED", 1: "USER_NOT_FOUND", } ErrorReason_value = map[string]int32{ "UNSPECIFIED": 0, "USER_NOT_FOUND": 1, } )
Enum value maps for ErrorReason.
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "saasdesk.service.v1.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Logout", Handler: _AuthService_Logout_Handler, }, { MethodName: "Register", Handler: _AuthService_Register_Handler, }, { MethodName: "LoginByPassword", Handler: _AuthService_LoginByPassword_Handler, }, { MethodName: "LoginBySms", Handler: _AuthService_LoginBySms_Handler, }, { MethodName: "LoginByEmail", Handler: _AuthService_LoginByEmail_Handler, }, { MethodName: "GetAuthInfo", Handler: _AuthService_GetAuthInfo_Handler, }, { MethodName: "GetAuthProfile", Handler: _AuthService_GetAuthProfile_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "saasdesk/service/v1/auth.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_saasdesk_service_v1_auth_proto protoreflect.FileDescriptor
var File_saasdesk_service_v1_error_reason_proto protoreflect.FileDescriptor
var File_saasdesk_service_v1_role_proto protoreflect.FileDescriptor
var File_saasdesk_service_v1_user_proto protoreflect.FileDescriptor
var RoleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "saasdesk.service.v1.RoleService", HandlerType: (*RoleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRole", Handler: _RoleService_CreateRole_Handler, }, { MethodName: "UpdateRole", Handler: _RoleService_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _RoleService_DeleteRole_Handler, }, { MethodName: "GetRole", Handler: _RoleService_GetRole_Handler, }, { MethodName: "ListRole", Handler: _RoleService_ListRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "saasdesk/service/v1/role.proto", }
RoleService_ServiceDesc is the grpc.ServiceDesc for RoleService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "saasdesk.service.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "ListUser", Handler: _UserService_ListUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "saasdesk/service/v1/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorUnspecified ¶
func ErrorUserNotFound ¶
func IsUnspecified ¶
func IsUserNotFound ¶
func RegisterAuthServiceHTTPServer ¶
func RegisterAuthServiceHTTPServer(s *http.Server, srv AuthServiceHTTPServer)
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterRoleServiceHTTPServer ¶
func RegisterRoleServiceHTTPServer(s *http.Server, srv RoleServiceHTTPServer)
func RegisterRoleServiceServer ¶
func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)
func RegisterUserServiceHTTPServer ¶
func RegisterUserServiceHTTPServer(s *http.Server, srv UserServiceHTTPServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { // 登出 Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutResponse, error) // 注册 Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) // 密码登陆 LoginByPassword(ctx context.Context, in *LoginByPasswordRequest, opts ...grpc.CallOption) (*LoginResponse, error) // 短信登陆 LoginBySms(ctx context.Context, in *LoginBySmsRequest, opts ...grpc.CallOption) (*LoginResponse, error) // 邮件登陆 LoginByEmail(ctx context.Context, in *LoginByEmailRequest, opts ...grpc.CallOption) (*LoginResponse, error) // 当前登录用户概述 GetAuthInfo(ctx context.Context, in *GetAuthInfoRequest, opts ...grpc.CallOption) (*GetAuthInfoResponse, error) // 当前登录用户概述 GetAuthProfile(ctx context.Context, in *GetAuthProfileRequest, opts ...grpc.CallOption) (*GetAuthProfileResponse, error) }
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceHTTPClient ¶
type AuthServiceHTTPClient interface { GetAuthInfo(ctx context.Context, req *GetAuthInfoRequest, opts ...http.CallOption) (rsp *GetAuthInfoResponse, err error) GetAuthProfile(ctx context.Context, req *GetAuthProfileRequest, opts ...http.CallOption) (rsp *GetAuthProfileResponse, err error) LoginByEmail(ctx context.Context, req *LoginByEmailRequest, opts ...http.CallOption) (rsp *LoginResponse, err error) LoginByPassword(ctx context.Context, req *LoginByPasswordRequest, opts ...http.CallOption) (rsp *LoginResponse, err error) LoginBySms(ctx context.Context, req *LoginBySmsRequest, opts ...http.CallOption) (rsp *LoginResponse, err error) Logout(ctx context.Context, req *LogoutRequest, opts ...http.CallOption) (rsp *LogoutResponse, err error) Register(ctx context.Context, req *RegisterRequest, opts ...http.CallOption) (rsp *RegisterResponse, err error) }
func NewAuthServiceHTTPClient ¶
func NewAuthServiceHTTPClient(client *http.Client) AuthServiceHTTPClient
type AuthServiceHTTPClientImpl ¶
type AuthServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AuthServiceHTTPClientImpl) GetAuthInfo ¶
func (c *AuthServiceHTTPClientImpl) GetAuthInfo(ctx context.Context, in *GetAuthInfoRequest, opts ...http.CallOption) (*GetAuthInfoResponse, error)
func (*AuthServiceHTTPClientImpl) GetAuthProfile ¶
func (c *AuthServiceHTTPClientImpl) GetAuthProfile(ctx context.Context, in *GetAuthProfileRequest, opts ...http.CallOption) (*GetAuthProfileResponse, error)
func (*AuthServiceHTTPClientImpl) LoginByEmail ¶
func (c *AuthServiceHTTPClientImpl) LoginByEmail(ctx context.Context, in *LoginByEmailRequest, opts ...http.CallOption) (*LoginResponse, error)
func (*AuthServiceHTTPClientImpl) LoginByPassword ¶
func (c *AuthServiceHTTPClientImpl) LoginByPassword(ctx context.Context, in *LoginByPasswordRequest, opts ...http.CallOption) (*LoginResponse, error)
func (*AuthServiceHTTPClientImpl) LoginBySms ¶
func (c *AuthServiceHTTPClientImpl) LoginBySms(ctx context.Context, in *LoginBySmsRequest, opts ...http.CallOption) (*LoginResponse, error)
func (*AuthServiceHTTPClientImpl) Logout ¶
func (c *AuthServiceHTTPClientImpl) Logout(ctx context.Context, in *LogoutRequest, opts ...http.CallOption) (*LogoutResponse, error)
func (*AuthServiceHTTPClientImpl) Register ¶
func (c *AuthServiceHTTPClientImpl) Register(ctx context.Context, in *RegisterRequest, opts ...http.CallOption) (*RegisterResponse, error)
type AuthServiceHTTPServer ¶
type AuthServiceHTTPServer interface { // GetAuthInfo 当前登录用户概述 GetAuthInfo(context.Context, *GetAuthInfoRequest) (*GetAuthInfoResponse, error) // GetAuthProfile 当前登录用户概述 GetAuthProfile(context.Context, *GetAuthProfileRequest) (*GetAuthProfileResponse, error) // LoginByEmail 邮件登陆 LoginByEmail(context.Context, *LoginByEmailRequest) (*LoginResponse, error) // LoginByPassword 密码登陆 LoginByPassword(context.Context, *LoginByPasswordRequest) (*LoginResponse, error) // LoginBySms 短信登陆 LoginBySms(context.Context, *LoginBySmsRequest) (*LoginResponse, error) // Logout 登出 Logout(context.Context, *LogoutRequest) (*LogoutResponse, error) // Register 注册 Register(context.Context, *RegisterRequest) (*RegisterResponse, error) }
type AuthServiceServer ¶
type AuthServiceServer interface { // 登出 Logout(context.Context, *LogoutRequest) (*LogoutResponse, error) // 注册 Register(context.Context, *RegisterRequest) (*RegisterResponse, error) // 密码登陆 LoginByPassword(context.Context, *LoginByPasswordRequest) (*LoginResponse, error) // 短信登陆 LoginBySms(context.Context, *LoginBySmsRequest) (*LoginResponse, error) // 邮件登陆 LoginByEmail(context.Context, *LoginByEmailRequest) (*LoginResponse, error) // 当前登录用户概述 GetAuthInfo(context.Context, *GetAuthInfoRequest) (*GetAuthInfoResponse, error) // 当前登录用户概述 GetAuthProfile(context.Context, *GetAuthProfileRequest) (*GetAuthProfileResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type CreateRoleRequest ¶
type CreateRoleRequest struct {
// contains filtered or unexported fields
}
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
func (*CreateRoleRequest) Validate ¶
func (m *CreateRoleRequest) Validate() error
Validate checks the field values on CreateRoleRequest 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 (*CreateRoleRequest) ValidateAll ¶
func (m *CreateRoleRequest) ValidateAll() error
ValidateAll checks the field values on CreateRoleRequest 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 CreateRoleRequestMultiError, or nil if none found.
type CreateRoleRequestMultiError ¶
type CreateRoleRequestMultiError []error
CreateRoleRequestMultiError is an error wrapping multiple validation errors returned by CreateRoleRequest.ValidateAll() if the designated constraints aren't met.
func (CreateRoleRequestMultiError) AllErrors ¶
func (m CreateRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleRequestMultiError) Error ¶
func (m CreateRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleRequestValidationError ¶
type CreateRoleRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRoleRequestValidationError is the validation error returned by CreateRoleRequest.Validate if the designated constraints aren't met.
func (CreateRoleRequestValidationError) Cause ¶
func (e CreateRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleRequestValidationError) Error ¶
func (e CreateRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleRequestValidationError) ErrorName ¶
func (e CreateRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleRequestValidationError) Field ¶
func (e CreateRoleRequestValidationError) Field() string
Field function returns field value.
func (CreateRoleRequestValidationError) Key ¶
func (e CreateRoleRequestValidationError) Key() bool
Key function returns key value.
func (CreateRoleRequestValidationError) Reason ¶
func (e CreateRoleRequestValidationError) Reason() string
Reason function returns reason value.
type CreateRoleResponse ¶
type CreateRoleResponse struct {
// contains filtered or unexported fields
}
func (*CreateRoleResponse) Descriptor
deprecated
func (*CreateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.
func (*CreateRoleResponse) ProtoMessage ¶
func (*CreateRoleResponse) ProtoMessage()
func (*CreateRoleResponse) ProtoReflect ¶
func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
func (*CreateRoleResponse) Reset ¶
func (x *CreateRoleResponse) Reset()
func (*CreateRoleResponse) String ¶
func (x *CreateRoleResponse) String() string
func (*CreateRoleResponse) Validate ¶
func (m *CreateRoleResponse) Validate() error
Validate checks the field values on CreateRoleResponse 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 (*CreateRoleResponse) ValidateAll ¶
func (m *CreateRoleResponse) ValidateAll() error
ValidateAll checks the field values on CreateRoleResponse 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 CreateRoleResponseMultiError, or nil if none found.
type CreateRoleResponseMultiError ¶
type CreateRoleResponseMultiError []error
CreateRoleResponseMultiError is an error wrapping multiple validation errors returned by CreateRoleResponse.ValidateAll() if the designated constraints aren't met.
func (CreateRoleResponseMultiError) AllErrors ¶
func (m CreateRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRoleResponseMultiError) Error ¶
func (m CreateRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateRoleResponseValidationError ¶
type CreateRoleResponseValidationError struct {
// contains filtered or unexported fields
}
CreateRoleResponseValidationError is the validation error returned by CreateRoleResponse.Validate if the designated constraints aren't met.
func (CreateRoleResponseValidationError) Cause ¶
func (e CreateRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateRoleResponseValidationError) Error ¶
func (e CreateRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRoleResponseValidationError) ErrorName ¶
func (e CreateRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRoleResponseValidationError) Field ¶
func (e CreateRoleResponseValidationError) Field() string
Field function returns field value.
func (CreateRoleResponseValidationError) Key ¶
func (e CreateRoleResponseValidationError) Key() bool
Key function returns key value.
func (CreateRoleResponseValidationError) Reason ¶
func (e CreateRoleResponseValidationError) Reason() string
Reason function returns reason value.
type CreateUserRequest ¶
type CreateUserRequest struct {
// contains filtered or unexported fields
}
func (*CreateUserRequest) Descriptor
deprecated
func (*CreateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) ProtoReflect ¶
func (x *CreateUserRequest) ProtoReflect() protoreflect.Message
func (*CreateUserRequest) Reset ¶
func (x *CreateUserRequest) Reset()
func (*CreateUserRequest) String ¶
func (x *CreateUserRequest) String() string
func (*CreateUserRequest) Validate ¶
func (m *CreateUserRequest) Validate() error
Validate checks the field values on CreateUserRequest 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 (*CreateUserRequest) ValidateAll ¶
func (m *CreateUserRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserRequest 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 CreateUserRequestMultiError, or nil if none found.
type CreateUserRequestMultiError ¶
type CreateUserRequestMultiError []error
CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserRequestMultiError) AllErrors ¶
func (m CreateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserRequestMultiError) Error ¶
func (m CreateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserRequestValidationError ¶
type CreateUserRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.
func (CreateUserRequestValidationError) Cause ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
Reason function returns reason value.
type CreateUserResponse ¶
type CreateUserResponse struct {
// contains filtered or unexported fields
}
func (*CreateUserResponse) Descriptor
deprecated
func (*CreateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.
func (*CreateUserResponse) ProtoMessage ¶
func (*CreateUserResponse) ProtoMessage()
func (*CreateUserResponse) ProtoReflect ¶
func (x *CreateUserResponse) ProtoReflect() protoreflect.Message
func (*CreateUserResponse) Reset ¶
func (x *CreateUserResponse) Reset()
func (*CreateUserResponse) String ¶
func (x *CreateUserResponse) String() string
func (*CreateUserResponse) Validate ¶
func (m *CreateUserResponse) Validate() error
Validate checks the field values on CreateUserResponse 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 (*CreateUserResponse) ValidateAll ¶
func (m *CreateUserResponse) ValidateAll() error
ValidateAll checks the field values on CreateUserResponse 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 CreateUserResponseMultiError, or nil if none found.
type CreateUserResponseMultiError ¶
type CreateUserResponseMultiError []error
CreateUserResponseMultiError is an error wrapping multiple validation errors returned by CreateUserResponse.ValidateAll() if the designated constraints aren't met.
func (CreateUserResponseMultiError) AllErrors ¶
func (m CreateUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserResponseMultiError) Error ¶
func (m CreateUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserResponseValidationError ¶
type CreateUserResponseValidationError struct {
// contains filtered or unexported fields
}
CreateUserResponseValidationError is the validation error returned by CreateUserResponse.Validate if the designated constraints aren't met.
func (CreateUserResponseValidationError) Cause ¶
func (e CreateUserResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateUserResponseValidationError) Error ¶
func (e CreateUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserResponseValidationError) ErrorName ¶
func (e CreateUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserResponseValidationError) Field ¶
func (e CreateUserResponseValidationError) Field() string
Field function returns field value.
func (CreateUserResponseValidationError) Key ¶
func (e CreateUserResponseValidationError) Key() bool
Key function returns key value.
func (CreateUserResponseValidationError) Reason ¶
func (e CreateUserResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteRoleRequest ¶
type DeleteRoleRequest struct {
// contains filtered or unexported fields
}
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) ProtoReflect ¶
func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleRequest) Reset ¶
func (x *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (x *DeleteRoleRequest) String() string
func (*DeleteRoleRequest) Validate ¶
func (m *DeleteRoleRequest) Validate() error
Validate checks the field values on DeleteRoleRequest 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 (*DeleteRoleRequest) ValidateAll ¶
func (m *DeleteRoleRequest) ValidateAll() error
ValidateAll checks the field values on DeleteRoleRequest 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 DeleteRoleRequestMultiError, or nil if none found.
type DeleteRoleRequestMultiError ¶
type DeleteRoleRequestMultiError []error
DeleteRoleRequestMultiError is an error wrapping multiple validation errors returned by DeleteRoleRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleRequestMultiError) AllErrors ¶
func (m DeleteRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleRequestMultiError) Error ¶
func (m DeleteRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleRequestValidationError ¶
type DeleteRoleRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleRequestValidationError is the validation error returned by DeleteRoleRequest.Validate if the designated constraints aren't met.
func (DeleteRoleRequestValidationError) Cause ¶
func (e DeleteRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleRequestValidationError) Error ¶
func (e DeleteRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleRequestValidationError) ErrorName ¶
func (e DeleteRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleRequestValidationError) Field ¶
func (e DeleteRoleRequestValidationError) Field() string
Field function returns field value.
func (DeleteRoleRequestValidationError) Key ¶
func (e DeleteRoleRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRoleRequestValidationError) Reason ¶
func (e DeleteRoleRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteRoleResponse ¶
type DeleteRoleResponse struct {
// contains filtered or unexported fields
}
func (*DeleteRoleResponse) Descriptor
deprecated
func (*DeleteRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteRoleResponse) ProtoMessage ¶
func (*DeleteRoleResponse) ProtoMessage()
func (*DeleteRoleResponse) ProtoReflect ¶
func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
func (*DeleteRoleResponse) Reset ¶
func (x *DeleteRoleResponse) Reset()
func (*DeleteRoleResponse) String ¶
func (x *DeleteRoleResponse) String() string
func (*DeleteRoleResponse) Validate ¶
func (m *DeleteRoleResponse) Validate() error
Validate checks the field values on DeleteRoleResponse 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 (*DeleteRoleResponse) ValidateAll ¶
func (m *DeleteRoleResponse) ValidateAll() error
ValidateAll checks the field values on DeleteRoleResponse 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 DeleteRoleResponseMultiError, or nil if none found.
type DeleteRoleResponseMultiError ¶
type DeleteRoleResponseMultiError []error
DeleteRoleResponseMultiError is an error wrapping multiple validation errors returned by DeleteRoleResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteRoleResponseMultiError) AllErrors ¶
func (m DeleteRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRoleResponseMultiError) Error ¶
func (m DeleteRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteRoleResponseValidationError ¶
type DeleteRoleResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteRoleResponseValidationError is the validation error returned by DeleteRoleResponse.Validate if the designated constraints aren't met.
func (DeleteRoleResponseValidationError) Cause ¶
func (e DeleteRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteRoleResponseValidationError) Error ¶
func (e DeleteRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRoleResponseValidationError) ErrorName ¶
func (e DeleteRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRoleResponseValidationError) Field ¶
func (e DeleteRoleResponseValidationError) Field() string
Field function returns field value.
func (DeleteRoleResponseValidationError) Key ¶
func (e DeleteRoleResponseValidationError) Key() bool
Key function returns key value.
func (DeleteRoleResponseValidationError) Reason ¶
func (e DeleteRoleResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteUserRequest ¶
type DeleteUserRequest struct {
// contains filtered or unexported fields
}
func (*DeleteUserRequest) Descriptor
deprecated
func (*DeleteUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserRequest.ProtoReflect.Descriptor instead.
func (*DeleteUserRequest) ProtoMessage ¶
func (*DeleteUserRequest) ProtoMessage()
func (*DeleteUserRequest) ProtoReflect ¶
func (x *DeleteUserRequest) ProtoReflect() protoreflect.Message
func (*DeleteUserRequest) Reset ¶
func (x *DeleteUserRequest) Reset()
func (*DeleteUserRequest) String ¶
func (x *DeleteUserRequest) String() string
func (*DeleteUserRequest) Validate ¶
func (m *DeleteUserRequest) Validate() error
Validate checks the field values on DeleteUserRequest 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 (*DeleteUserRequest) ValidateAll ¶
func (m *DeleteUserRequest) ValidateAll() error
ValidateAll checks the field values on DeleteUserRequest 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 DeleteUserRequestMultiError, or nil if none found.
type DeleteUserRequestMultiError ¶
type DeleteUserRequestMultiError []error
DeleteUserRequestMultiError is an error wrapping multiple validation errors returned by DeleteUserRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteUserRequestMultiError) AllErrors ¶
func (m DeleteUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserRequestMultiError) Error ¶
func (m DeleteUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserRequestValidationError ¶
type DeleteUserRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteUserRequestValidationError is the validation error returned by DeleteUserRequest.Validate if the designated constraints aren't met.
func (DeleteUserRequestValidationError) Cause ¶
func (e DeleteUserRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserRequestValidationError) Error ¶
func (e DeleteUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserRequestValidationError) ErrorName ¶
func (e DeleteUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserRequestValidationError) Field ¶
func (e DeleteUserRequestValidationError) Field() string
Field function returns field value.
func (DeleteUserRequestValidationError) Key ¶
func (e DeleteUserRequestValidationError) Key() bool
Key function returns key value.
func (DeleteUserRequestValidationError) Reason ¶
func (e DeleteUserRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteUserResponse ¶
type DeleteUserResponse struct {
// contains filtered or unexported fields
}
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
func (*DeleteUserResponse) Validate ¶
func (m *DeleteUserResponse) Validate() error
Validate checks the field values on DeleteUserResponse 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 (*DeleteUserResponse) ValidateAll ¶
func (m *DeleteUserResponse) ValidateAll() error
ValidateAll checks the field values on DeleteUserResponse 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 DeleteUserResponseMultiError, or nil if none found.
type DeleteUserResponseMultiError ¶
type DeleteUserResponseMultiError []error
DeleteUserResponseMultiError is an error wrapping multiple validation errors returned by DeleteUserResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteUserResponseMultiError) AllErrors ¶
func (m DeleteUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteUserResponseMultiError) Error ¶
func (m DeleteUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteUserResponseValidationError ¶
type DeleteUserResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteUserResponseValidationError is the validation error returned by DeleteUserResponse.Validate if the designated constraints aren't met.
func (DeleteUserResponseValidationError) Cause ¶
func (e DeleteUserResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteUserResponseValidationError) Error ¶
func (e DeleteUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteUserResponseValidationError) ErrorName ¶
func (e DeleteUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteUserResponseValidationError) Field ¶
func (e DeleteUserResponseValidationError) Field() string
Field function returns field value.
func (DeleteUserResponseValidationError) Key ¶
func (e DeleteUserResponseValidationError) Key() bool
Key function returns key value.
func (DeleteUserResponseValidationError) Reason ¶
func (e DeleteUserResponseValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_UNSPECIFIED ErrorReason = 0 ErrorReason_USER_NOT_FOUND ErrorReason = 1 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetAuthInfoRequest ¶
type GetAuthInfoRequest struct {
// contains filtered or unexported fields
}
请求 - 用户详情
func (*GetAuthInfoRequest) Descriptor
deprecated
func (*GetAuthInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthInfoRequest.ProtoReflect.Descriptor instead.
func (*GetAuthInfoRequest) ProtoMessage ¶
func (*GetAuthInfoRequest) ProtoMessage()
func (*GetAuthInfoRequest) ProtoReflect ¶
func (x *GetAuthInfoRequest) ProtoReflect() protoreflect.Message
func (*GetAuthInfoRequest) Reset ¶
func (x *GetAuthInfoRequest) Reset()
func (*GetAuthInfoRequest) String ¶
func (x *GetAuthInfoRequest) String() string
func (*GetAuthInfoRequest) Validate ¶
func (m *GetAuthInfoRequest) Validate() error
Validate checks the field values on GetAuthInfoRequest 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 (*GetAuthInfoRequest) ValidateAll ¶
func (m *GetAuthInfoRequest) ValidateAll() error
ValidateAll checks the field values on GetAuthInfoRequest 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 GetAuthInfoRequestMultiError, or nil if none found.
type GetAuthInfoRequestMultiError ¶
type GetAuthInfoRequestMultiError []error
GetAuthInfoRequestMultiError is an error wrapping multiple validation errors returned by GetAuthInfoRequest.ValidateAll() if the designated constraints aren't met.
func (GetAuthInfoRequestMultiError) AllErrors ¶
func (m GetAuthInfoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAuthInfoRequestMultiError) Error ¶
func (m GetAuthInfoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAuthInfoRequestValidationError ¶
type GetAuthInfoRequestValidationError struct {
// contains filtered or unexported fields
}
GetAuthInfoRequestValidationError is the validation error returned by GetAuthInfoRequest.Validate if the designated constraints aren't met.
func (GetAuthInfoRequestValidationError) Cause ¶
func (e GetAuthInfoRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAuthInfoRequestValidationError) Error ¶
func (e GetAuthInfoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAuthInfoRequestValidationError) ErrorName ¶
func (e GetAuthInfoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAuthInfoRequestValidationError) Field ¶
func (e GetAuthInfoRequestValidationError) Field() string
Field function returns field value.
func (GetAuthInfoRequestValidationError) Key ¶
func (e GetAuthInfoRequestValidationError) Key() bool
Key function returns key value.
func (GetAuthInfoRequestValidationError) Reason ¶
func (e GetAuthInfoRequestValidationError) Reason() string
Reason function returns reason value.
type GetAuthInfoResponse ¶
type GetAuthInfoResponse struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` NickName string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3" json:"nick_name,omitempty"` RealName string `protobuf:"bytes,5,opt,name=real_name,json=realName,proto3" json:"real_name,omitempty"` Birthday string `protobuf:"bytes,6,opt,name=birthday,proto3" json:"birthday,omitempty"` Gender int32 `protobuf:"varint,7,opt,name=gender,proto3" json:"gender,omitempty"` Phone string `protobuf:"bytes,8,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email,omitempty"` Avatar string `protobuf:"bytes,10,opt,name=avatar,proto3" json:"avatar,omitempty"` State int32 `protobuf:"varint,11,opt,name=state,proto3" json:"state,omitempty"` Roles []*Role `protobuf:"bytes,12,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
回应 - 用户详情
func (*GetAuthInfoResponse) Descriptor
deprecated
func (*GetAuthInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthInfoResponse.ProtoReflect.Descriptor instead.
func (*GetAuthInfoResponse) GetAvatar ¶
func (x *GetAuthInfoResponse) GetAvatar() string
func (*GetAuthInfoResponse) GetBirthday ¶
func (x *GetAuthInfoResponse) GetBirthday() string
func (*GetAuthInfoResponse) GetEmail ¶
func (x *GetAuthInfoResponse) GetEmail() string
func (*GetAuthInfoResponse) GetGender ¶
func (x *GetAuthInfoResponse) GetGender() int32
func (*GetAuthInfoResponse) GetId ¶
func (x *GetAuthInfoResponse) GetId() uint64
func (*GetAuthInfoResponse) GetName ¶
func (x *GetAuthInfoResponse) GetName() string
func (*GetAuthInfoResponse) GetNickName ¶
func (x *GetAuthInfoResponse) GetNickName() string
func (*GetAuthInfoResponse) GetPhone ¶
func (x *GetAuthInfoResponse) GetPhone() string
func (*GetAuthInfoResponse) GetRealName ¶
func (x *GetAuthInfoResponse) GetRealName() string
func (*GetAuthInfoResponse) GetRoles ¶
func (x *GetAuthInfoResponse) GetRoles() []*Role
func (*GetAuthInfoResponse) GetState ¶
func (x *GetAuthInfoResponse) GetState() int32
func (*GetAuthInfoResponse) ProtoMessage ¶
func (*GetAuthInfoResponse) ProtoMessage()
func (*GetAuthInfoResponse) ProtoReflect ¶
func (x *GetAuthInfoResponse) ProtoReflect() protoreflect.Message
func (*GetAuthInfoResponse) Reset ¶
func (x *GetAuthInfoResponse) Reset()
func (*GetAuthInfoResponse) String ¶
func (x *GetAuthInfoResponse) String() string
func (*GetAuthInfoResponse) Validate ¶
func (m *GetAuthInfoResponse) Validate() error
Validate checks the field values on GetAuthInfoResponse 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 (*GetAuthInfoResponse) ValidateAll ¶
func (m *GetAuthInfoResponse) ValidateAll() error
ValidateAll checks the field values on GetAuthInfoResponse 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 GetAuthInfoResponseMultiError, or nil if none found.
type GetAuthInfoResponseMultiError ¶
type GetAuthInfoResponseMultiError []error
GetAuthInfoResponseMultiError is an error wrapping multiple validation errors returned by GetAuthInfoResponse.ValidateAll() if the designated constraints aren't met.
func (GetAuthInfoResponseMultiError) AllErrors ¶
func (m GetAuthInfoResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAuthInfoResponseMultiError) Error ¶
func (m GetAuthInfoResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAuthInfoResponseValidationError ¶
type GetAuthInfoResponseValidationError struct {
// contains filtered or unexported fields
}
GetAuthInfoResponseValidationError is the validation error returned by GetAuthInfoResponse.Validate if the designated constraints aren't met.
func (GetAuthInfoResponseValidationError) Cause ¶
func (e GetAuthInfoResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAuthInfoResponseValidationError) Error ¶
func (e GetAuthInfoResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAuthInfoResponseValidationError) ErrorName ¶
func (e GetAuthInfoResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAuthInfoResponseValidationError) Field ¶
func (e GetAuthInfoResponseValidationError) Field() string
Field function returns field value.
func (GetAuthInfoResponseValidationError) Key ¶
func (e GetAuthInfoResponseValidationError) Key() bool
Key function returns key value.
func (GetAuthInfoResponseValidationError) Reason ¶
func (e GetAuthInfoResponseValidationError) Reason() string
Reason function returns reason value.
type GetAuthProfileRequest ¶
type GetAuthProfileRequest struct {
// contains filtered or unexported fields
}
请求 - 用户概况详情
func (*GetAuthProfileRequest) Descriptor
deprecated
func (*GetAuthProfileRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthProfileRequest.ProtoReflect.Descriptor instead.
func (*GetAuthProfileRequest) ProtoMessage ¶
func (*GetAuthProfileRequest) ProtoMessage()
func (*GetAuthProfileRequest) ProtoReflect ¶
func (x *GetAuthProfileRequest) ProtoReflect() protoreflect.Message
func (*GetAuthProfileRequest) Reset ¶
func (x *GetAuthProfileRequest) Reset()
func (*GetAuthProfileRequest) String ¶
func (x *GetAuthProfileRequest) String() string
func (*GetAuthProfileRequest) Validate ¶
func (m *GetAuthProfileRequest) Validate() error
Validate checks the field values on GetAuthProfileRequest 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 (*GetAuthProfileRequest) ValidateAll ¶
func (m *GetAuthProfileRequest) ValidateAll() error
ValidateAll checks the field values on GetAuthProfileRequest 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 GetAuthProfileRequestMultiError, or nil if none found.
type GetAuthProfileRequestMultiError ¶
type GetAuthProfileRequestMultiError []error
GetAuthProfileRequestMultiError is an error wrapping multiple validation errors returned by GetAuthProfileRequest.ValidateAll() if the designated constraints aren't met.
func (GetAuthProfileRequestMultiError) AllErrors ¶
func (m GetAuthProfileRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAuthProfileRequestMultiError) Error ¶
func (m GetAuthProfileRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAuthProfileRequestValidationError ¶
type GetAuthProfileRequestValidationError struct {
// contains filtered or unexported fields
}
GetAuthProfileRequestValidationError is the validation error returned by GetAuthProfileRequest.Validate if the designated constraints aren't met.
func (GetAuthProfileRequestValidationError) Cause ¶
func (e GetAuthProfileRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAuthProfileRequestValidationError) Error ¶
func (e GetAuthProfileRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAuthProfileRequestValidationError) ErrorName ¶
func (e GetAuthProfileRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAuthProfileRequestValidationError) Field ¶
func (e GetAuthProfileRequestValidationError) Field() string
Field function returns field value.
func (GetAuthProfileRequestValidationError) Key ¶
func (e GetAuthProfileRequestValidationError) Key() bool
Key function returns key value.
func (GetAuthProfileRequestValidationError) Reason ¶
func (e GetAuthProfileRequestValidationError) Reason() string
Reason function returns reason value.
type GetAuthProfileResponse ¶
type GetAuthProfileResponse struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Roles []*Role `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
回应 - 用户概况详情
func (*GetAuthProfileResponse) Descriptor
deprecated
func (*GetAuthProfileResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAuthProfileResponse.ProtoReflect.Descriptor instead.
func (*GetAuthProfileResponse) GetRoles ¶
func (x *GetAuthProfileResponse) GetRoles() []*Role
func (*GetAuthProfileResponse) GetUser ¶
func (x *GetAuthProfileResponse) GetUser() *User
func (*GetAuthProfileResponse) ProtoMessage ¶
func (*GetAuthProfileResponse) ProtoMessage()
func (*GetAuthProfileResponse) ProtoReflect ¶
func (x *GetAuthProfileResponse) ProtoReflect() protoreflect.Message
func (*GetAuthProfileResponse) Reset ¶
func (x *GetAuthProfileResponse) Reset()
func (*GetAuthProfileResponse) String ¶
func (x *GetAuthProfileResponse) String() string
func (*GetAuthProfileResponse) Validate ¶
func (m *GetAuthProfileResponse) Validate() error
Validate checks the field values on GetAuthProfileResponse 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 (*GetAuthProfileResponse) ValidateAll ¶
func (m *GetAuthProfileResponse) ValidateAll() error
ValidateAll checks the field values on GetAuthProfileResponse 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 GetAuthProfileResponseMultiError, or nil if none found.
type GetAuthProfileResponseMultiError ¶
type GetAuthProfileResponseMultiError []error
GetAuthProfileResponseMultiError is an error wrapping multiple validation errors returned by GetAuthProfileResponse.ValidateAll() if the designated constraints aren't met.
func (GetAuthProfileResponseMultiError) AllErrors ¶
func (m GetAuthProfileResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAuthProfileResponseMultiError) Error ¶
func (m GetAuthProfileResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAuthProfileResponseValidationError ¶
type GetAuthProfileResponseValidationError struct {
// contains filtered or unexported fields
}
GetAuthProfileResponseValidationError is the validation error returned by GetAuthProfileResponse.Validate if the designated constraints aren't met.
func (GetAuthProfileResponseValidationError) Cause ¶
func (e GetAuthProfileResponseValidationError) Cause() error
Cause function returns cause value.
func (GetAuthProfileResponseValidationError) Error ¶
func (e GetAuthProfileResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetAuthProfileResponseValidationError) ErrorName ¶
func (e GetAuthProfileResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetAuthProfileResponseValidationError) Field ¶
func (e GetAuthProfileResponseValidationError) Field() string
Field function returns field value.
func (GetAuthProfileResponseValidationError) Key ¶
func (e GetAuthProfileResponseValidationError) Key() bool
Key function returns key value.
func (GetAuthProfileResponseValidationError) Reason ¶
func (e GetAuthProfileResponseValidationError) Reason() string
Reason function returns reason value.
type GetRoleRequest ¶
type GetRoleRequest struct {
// contains filtered or unexported fields
}
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) ProtoMessage ¶
func (*GetRoleRequest) ProtoMessage()
func (*GetRoleRequest) ProtoReflect ¶
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
func (*GetRoleRequest) Reset ¶
func (x *GetRoleRequest) Reset()
func (*GetRoleRequest) String ¶
func (x *GetRoleRequest) String() string
func (*GetRoleRequest) Validate ¶
func (m *GetRoleRequest) Validate() error
Validate checks the field values on GetRoleRequest 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 (*GetRoleRequest) ValidateAll ¶
func (m *GetRoleRequest) ValidateAll() error
ValidateAll checks the field values on GetRoleRequest 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 GetRoleRequestMultiError, or nil if none found.
type GetRoleRequestMultiError ¶
type GetRoleRequestMultiError []error
GetRoleRequestMultiError is an error wrapping multiple validation errors returned by GetRoleRequest.ValidateAll() if the designated constraints aren't met.
func (GetRoleRequestMultiError) AllErrors ¶
func (m GetRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleRequestMultiError) Error ¶
func (m GetRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleRequestValidationError ¶
type GetRoleRequestValidationError struct {
// contains filtered or unexported fields
}
GetRoleRequestValidationError is the validation error returned by GetRoleRequest.Validate if the designated constraints aren't met.
func (GetRoleRequestValidationError) Cause ¶
func (e GetRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRoleRequestValidationError) Error ¶
func (e GetRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleRequestValidationError) ErrorName ¶
func (e GetRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleRequestValidationError) Field ¶
func (e GetRoleRequestValidationError) Field() string
Field function returns field value.
func (GetRoleRequestValidationError) Key ¶
func (e GetRoleRequestValidationError) Key() bool
Key function returns key value.
func (GetRoleRequestValidationError) Reason ¶
func (e GetRoleRequestValidationError) Reason() string
Reason function returns reason value.
type GetRoleResponse ¶
type GetRoleResponse struct {
// contains filtered or unexported fields
}
func (*GetRoleResponse) Descriptor
deprecated
func (*GetRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.
func (*GetRoleResponse) ProtoMessage ¶
func (*GetRoleResponse) ProtoMessage()
func (*GetRoleResponse) ProtoReflect ¶
func (x *GetRoleResponse) ProtoReflect() protoreflect.Message
func (*GetRoleResponse) Reset ¶
func (x *GetRoleResponse) Reset()
func (*GetRoleResponse) String ¶
func (x *GetRoleResponse) String() string
func (*GetRoleResponse) Validate ¶
func (m *GetRoleResponse) Validate() error
Validate checks the field values on GetRoleResponse 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 (*GetRoleResponse) ValidateAll ¶
func (m *GetRoleResponse) ValidateAll() error
ValidateAll checks the field values on GetRoleResponse 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 GetRoleResponseMultiError, or nil if none found.
type GetRoleResponseMultiError ¶
type GetRoleResponseMultiError []error
GetRoleResponseMultiError is an error wrapping multiple validation errors returned by GetRoleResponse.ValidateAll() if the designated constraints aren't met.
func (GetRoleResponseMultiError) AllErrors ¶
func (m GetRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRoleResponseMultiError) Error ¶
func (m GetRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetRoleResponseValidationError ¶
type GetRoleResponseValidationError struct {
// contains filtered or unexported fields
}
GetRoleResponseValidationError is the validation error returned by GetRoleResponse.Validate if the designated constraints aren't met.
func (GetRoleResponseValidationError) Cause ¶
func (e GetRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (GetRoleResponseValidationError) Error ¶
func (e GetRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetRoleResponseValidationError) ErrorName ¶
func (e GetRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetRoleResponseValidationError) Field ¶
func (e GetRoleResponseValidationError) Field() string
Field function returns field value.
func (GetRoleResponseValidationError) Key ¶
func (e GetRoleResponseValidationError) Key() bool
Key function returns key value.
func (GetRoleResponseValidationError) Reason ¶
func (e GetRoleResponseValidationError) Reason() string
Reason function returns reason value.
type GetUserRequest ¶
type GetUserRequest struct {
// contains filtered or unexported fields
}
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
func (*GetUserRequest) Validate ¶
func (m *GetUserRequest) Validate() error
Validate checks the field values on GetUserRequest 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 (*GetUserRequest) ValidateAll ¶
func (m *GetUserRequest) ValidateAll() error
ValidateAll checks the field values on GetUserRequest 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 GetUserRequestMultiError, or nil if none found.
type GetUserRequestMultiError ¶
type GetUserRequestMultiError []error
GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserRequestMultiError) AllErrors ¶
func (m GetUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserRequestMultiError) Error ¶
func (m GetUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserRequestValidationError ¶
type GetUserRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.
func (GetUserRequestValidationError) Cause ¶
func (e GetUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserRequestValidationError) Error ¶
func (e GetUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRequestValidationError) ErrorName ¶
func (e GetUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRequestValidationError) Field ¶
func (e GetUserRequestValidationError) Field() string
Field function returns field value.
func (GetUserRequestValidationError) Key ¶
func (e GetUserRequestValidationError) Key() bool
Key function returns key value.
func (GetUserRequestValidationError) Reason ¶
func (e GetUserRequestValidationError) Reason() string
Reason function returns reason value.
type GetUserResponse ¶
type GetUserResponse struct {
// contains filtered or unexported fields
}
func (*GetUserResponse) Descriptor
deprecated
func (*GetUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) ProtoReflect ¶
func (x *GetUserResponse) ProtoReflect() protoreflect.Message
func (*GetUserResponse) Reset ¶
func (x *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (x *GetUserResponse) String() string
func (*GetUserResponse) Validate ¶
func (m *GetUserResponse) Validate() error
Validate checks the field values on GetUserResponse 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 (*GetUserResponse) ValidateAll ¶
func (m *GetUserResponse) ValidateAll() error
ValidateAll checks the field values on GetUserResponse 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 GetUserResponseMultiError, or nil if none found.
type GetUserResponseMultiError ¶
type GetUserResponseMultiError []error
GetUserResponseMultiError is an error wrapping multiple validation errors returned by GetUserResponse.ValidateAll() if the designated constraints aren't met.
func (GetUserResponseMultiError) AllErrors ¶
func (m GetUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserResponseMultiError) Error ¶
func (m GetUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserResponseValidationError ¶
type GetUserResponseValidationError struct {
// contains filtered or unexported fields
}
GetUserResponseValidationError is the validation error returned by GetUserResponse.Validate if the designated constraints aren't met.
func (GetUserResponseValidationError) Cause ¶
func (e GetUserResponseValidationError) Cause() error
Cause function returns cause value.
func (GetUserResponseValidationError) Error ¶
func (e GetUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserResponseValidationError) ErrorName ¶
func (e GetUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserResponseValidationError) Field ¶
func (e GetUserResponseValidationError) Field() string
Field function returns field value.
func (GetUserResponseValidationError) Key ¶
func (e GetUserResponseValidationError) Key() bool
Key function returns key value.
func (GetUserResponseValidationError) Reason ¶
func (e GetUserResponseValidationError) Reason() string
Reason function returns reason value.
type ListRoleRequest ¶
type ListRoleRequest struct {
// contains filtered or unexported fields
}
func (*ListRoleRequest) Descriptor
deprecated
func (*ListRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleRequest.ProtoReflect.Descriptor instead.
func (*ListRoleRequest) ProtoMessage ¶
func (*ListRoleRequest) ProtoMessage()
func (*ListRoleRequest) ProtoReflect ¶
func (x *ListRoleRequest) ProtoReflect() protoreflect.Message
func (*ListRoleRequest) Reset ¶
func (x *ListRoleRequest) Reset()
func (*ListRoleRequest) String ¶
func (x *ListRoleRequest) String() string
func (*ListRoleRequest) Validate ¶
func (m *ListRoleRequest) Validate() error
Validate checks the field values on ListRoleRequest 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 (*ListRoleRequest) ValidateAll ¶
func (m *ListRoleRequest) ValidateAll() error
ValidateAll checks the field values on ListRoleRequest 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 ListRoleRequestMultiError, or nil if none found.
type ListRoleRequestMultiError ¶
type ListRoleRequestMultiError []error
ListRoleRequestMultiError is an error wrapping multiple validation errors returned by ListRoleRequest.ValidateAll() if the designated constraints aren't met.
func (ListRoleRequestMultiError) AllErrors ¶
func (m ListRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleRequestMultiError) Error ¶
func (m ListRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleRequestValidationError ¶
type ListRoleRequestValidationError struct {
// contains filtered or unexported fields
}
ListRoleRequestValidationError is the validation error returned by ListRoleRequest.Validate if the designated constraints aren't met.
func (ListRoleRequestValidationError) Cause ¶
func (e ListRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (ListRoleRequestValidationError) Error ¶
func (e ListRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleRequestValidationError) ErrorName ¶
func (e ListRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleRequestValidationError) Field ¶
func (e ListRoleRequestValidationError) Field() string
Field function returns field value.
func (ListRoleRequestValidationError) Key ¶
func (e ListRoleRequestValidationError) Key() bool
Key function returns key value.
func (ListRoleRequestValidationError) Reason ¶
func (e ListRoleRequestValidationError) Reason() string
Reason function returns reason value.
type ListRoleResponse ¶
type ListRoleResponse struct {
// contains filtered or unexported fields
}
func (*ListRoleResponse) Descriptor
deprecated
func (*ListRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListRoleResponse.ProtoReflect.Descriptor instead.
func (*ListRoleResponse) ProtoMessage ¶
func (*ListRoleResponse) ProtoMessage()
func (*ListRoleResponse) ProtoReflect ¶
func (x *ListRoleResponse) ProtoReflect() protoreflect.Message
func (*ListRoleResponse) Reset ¶
func (x *ListRoleResponse) Reset()
func (*ListRoleResponse) String ¶
func (x *ListRoleResponse) String() string
func (*ListRoleResponse) Validate ¶
func (m *ListRoleResponse) Validate() error
Validate checks the field values on ListRoleResponse 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 (*ListRoleResponse) ValidateAll ¶
func (m *ListRoleResponse) ValidateAll() error
ValidateAll checks the field values on ListRoleResponse 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 ListRoleResponseMultiError, or nil if none found.
type ListRoleResponseMultiError ¶
type ListRoleResponseMultiError []error
ListRoleResponseMultiError is an error wrapping multiple validation errors returned by ListRoleResponse.ValidateAll() if the designated constraints aren't met.
func (ListRoleResponseMultiError) AllErrors ¶
func (m ListRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListRoleResponseMultiError) Error ¶
func (m ListRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListRoleResponseValidationError ¶
type ListRoleResponseValidationError struct {
// contains filtered or unexported fields
}
ListRoleResponseValidationError is the validation error returned by ListRoleResponse.Validate if the designated constraints aren't met.
func (ListRoleResponseValidationError) Cause ¶
func (e ListRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (ListRoleResponseValidationError) Error ¶
func (e ListRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListRoleResponseValidationError) ErrorName ¶
func (e ListRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListRoleResponseValidationError) Field ¶
func (e ListRoleResponseValidationError) Field() string
Field function returns field value.
func (ListRoleResponseValidationError) Key ¶
func (e ListRoleResponseValidationError) Key() bool
Key function returns key value.
func (ListRoleResponseValidationError) Reason ¶
func (e ListRoleResponseValidationError) Reason() string
Reason function returns reason value.
type ListUserRequest ¶
type ListUserRequest struct {
// contains filtered or unexported fields
}
func (*ListUserRequest) Descriptor
deprecated
func (*ListUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.
func (*ListUserRequest) ProtoMessage ¶
func (*ListUserRequest) ProtoMessage()
func (*ListUserRequest) ProtoReflect ¶
func (x *ListUserRequest) ProtoReflect() protoreflect.Message
func (*ListUserRequest) Reset ¶
func (x *ListUserRequest) Reset()
func (*ListUserRequest) String ¶
func (x *ListUserRequest) String() string
func (*ListUserRequest) Validate ¶
func (m *ListUserRequest) Validate() error
Validate checks the field values on ListUserRequest 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 (*ListUserRequest) ValidateAll ¶
func (m *ListUserRequest) ValidateAll() error
ValidateAll checks the field values on ListUserRequest 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 ListUserRequestMultiError, or nil if none found.
type ListUserRequestMultiError ¶
type ListUserRequestMultiError []error
ListUserRequestMultiError is an error wrapping multiple validation errors returned by ListUserRequest.ValidateAll() if the designated constraints aren't met.
func (ListUserRequestMultiError) AllErrors ¶
func (m ListUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserRequestMultiError) Error ¶
func (m ListUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserRequestValidationError ¶
type ListUserRequestValidationError struct {
// contains filtered or unexported fields
}
ListUserRequestValidationError is the validation error returned by ListUserRequest.Validate if the designated constraints aren't met.
func (ListUserRequestValidationError) Cause ¶
func (e ListUserRequestValidationError) Cause() error
Cause function returns cause value.
func (ListUserRequestValidationError) Error ¶
func (e ListUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserRequestValidationError) ErrorName ¶
func (e ListUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserRequestValidationError) Field ¶
func (e ListUserRequestValidationError) Field() string
Field function returns field value.
func (ListUserRequestValidationError) Key ¶
func (e ListUserRequestValidationError) Key() bool
Key function returns key value.
func (ListUserRequestValidationError) Reason ¶
func (e ListUserRequestValidationError) Reason() string
Reason function returns reason value.
type ListUserResponse ¶
type ListUserResponse struct {
// contains filtered or unexported fields
}
func (*ListUserResponse) Descriptor
deprecated
func (*ListUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListUserResponse.ProtoReflect.Descriptor instead.
func (*ListUserResponse) ProtoMessage ¶
func (*ListUserResponse) ProtoMessage()
func (*ListUserResponse) ProtoReflect ¶
func (x *ListUserResponse) ProtoReflect() protoreflect.Message
func (*ListUserResponse) Reset ¶
func (x *ListUserResponse) Reset()
func (*ListUserResponse) String ¶
func (x *ListUserResponse) String() string
func (*ListUserResponse) Validate ¶
func (m *ListUserResponse) Validate() error
Validate checks the field values on ListUserResponse 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 (*ListUserResponse) ValidateAll ¶
func (m *ListUserResponse) ValidateAll() error
ValidateAll checks the field values on ListUserResponse 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 ListUserResponseMultiError, or nil if none found.
type ListUserResponseMultiError ¶
type ListUserResponseMultiError []error
ListUserResponseMultiError is an error wrapping multiple validation errors returned by ListUserResponse.ValidateAll() if the designated constraints aren't met.
func (ListUserResponseMultiError) AllErrors ¶
func (m ListUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListUserResponseMultiError) Error ¶
func (m ListUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListUserResponseValidationError ¶
type ListUserResponseValidationError struct {
// contains filtered or unexported fields
}
ListUserResponseValidationError is the validation error returned by ListUserResponse.Validate if the designated constraints aren't met.
func (ListUserResponseValidationError) Cause ¶
func (e ListUserResponseValidationError) Cause() error
Cause function returns cause value.
func (ListUserResponseValidationError) Error ¶
func (e ListUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListUserResponseValidationError) ErrorName ¶
func (e ListUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListUserResponseValidationError) Field ¶
func (e ListUserResponseValidationError) Field() string
Field function returns field value.
func (ListUserResponseValidationError) Key ¶
func (e ListUserResponseValidationError) Key() bool
Key function returns key value.
func (ListUserResponseValidationError) Reason ¶
func (e ListUserResponseValidationError) Reason() string
Reason function returns reason value.
type LoginByEmailRequest ¶
type LoginByEmailRequest struct { // 请求体 Auth *LoginByEmailRequest_Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
请求 - 邮件登录
func (*LoginByEmailRequest) Descriptor
deprecated
func (*LoginByEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginByEmailRequest.ProtoReflect.Descriptor instead.
func (*LoginByEmailRequest) GetAuth ¶
func (x *LoginByEmailRequest) GetAuth() *LoginByEmailRequest_Auth
func (*LoginByEmailRequest) GetDomain ¶
func (x *LoginByEmailRequest) GetDomain() string
func (*LoginByEmailRequest) ProtoMessage ¶
func (*LoginByEmailRequest) ProtoMessage()
func (*LoginByEmailRequest) ProtoReflect ¶
func (x *LoginByEmailRequest) ProtoReflect() protoreflect.Message
func (*LoginByEmailRequest) Reset ¶
func (x *LoginByEmailRequest) Reset()
func (*LoginByEmailRequest) String ¶
func (x *LoginByEmailRequest) String() string
func (*LoginByEmailRequest) Validate ¶
func (m *LoginByEmailRequest) Validate() error
Validate checks the field values on LoginByEmailRequest 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 (*LoginByEmailRequest) ValidateAll ¶
func (m *LoginByEmailRequest) ValidateAll() error
ValidateAll checks the field values on LoginByEmailRequest 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 LoginByEmailRequestMultiError, or nil if none found.
type LoginByEmailRequestMultiError ¶
type LoginByEmailRequestMultiError []error
LoginByEmailRequestMultiError is an error wrapping multiple validation errors returned by LoginByEmailRequest.ValidateAll() if the designated constraints aren't met.
func (LoginByEmailRequestMultiError) AllErrors ¶
func (m LoginByEmailRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginByEmailRequestMultiError) Error ¶
func (m LoginByEmailRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginByEmailRequestValidationError ¶
type LoginByEmailRequestValidationError struct {
// contains filtered or unexported fields
}
LoginByEmailRequestValidationError is the validation error returned by LoginByEmailRequest.Validate if the designated constraints aren't met.
func (LoginByEmailRequestValidationError) Cause ¶
func (e LoginByEmailRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginByEmailRequestValidationError) Error ¶
func (e LoginByEmailRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginByEmailRequestValidationError) ErrorName ¶
func (e LoginByEmailRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginByEmailRequestValidationError) Field ¶
func (e LoginByEmailRequestValidationError) Field() string
Field function returns field value.
func (LoginByEmailRequestValidationError) Key ¶
func (e LoginByEmailRequestValidationError) Key() bool
Key function returns key value.
func (LoginByEmailRequestValidationError) Reason ¶
func (e LoginByEmailRequestValidationError) Reason() string
Reason function returns reason value.
type LoginByEmailRequest_Auth ¶
type LoginByEmailRequest_Auth struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*LoginByEmailRequest_Auth) Descriptor
deprecated
func (*LoginByEmailRequest_Auth) Descriptor() ([]byte, []int)
Deprecated: Use LoginByEmailRequest_Auth.ProtoReflect.Descriptor instead.
func (*LoginByEmailRequest_Auth) GetCode ¶
func (x *LoginByEmailRequest_Auth) GetCode() string
func (*LoginByEmailRequest_Auth) GetEmail ¶
func (x *LoginByEmailRequest_Auth) GetEmail() string
func (*LoginByEmailRequest_Auth) ProtoMessage ¶
func (*LoginByEmailRequest_Auth) ProtoMessage()
func (*LoginByEmailRequest_Auth) ProtoReflect ¶
func (x *LoginByEmailRequest_Auth) ProtoReflect() protoreflect.Message
func (*LoginByEmailRequest_Auth) Reset ¶
func (x *LoginByEmailRequest_Auth) Reset()
func (*LoginByEmailRequest_Auth) String ¶
func (x *LoginByEmailRequest_Auth) String() string
func (*LoginByEmailRequest_Auth) Validate ¶
func (m *LoginByEmailRequest_Auth) Validate() error
Validate checks the field values on LoginByEmailRequest_Auth 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 (*LoginByEmailRequest_Auth) ValidateAll ¶
func (m *LoginByEmailRequest_Auth) ValidateAll() error
ValidateAll checks the field values on LoginByEmailRequest_Auth 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 LoginByEmailRequest_AuthMultiError, or nil if none found.
type LoginByEmailRequest_AuthMultiError ¶
type LoginByEmailRequest_AuthMultiError []error
LoginByEmailRequest_AuthMultiError is an error wrapping multiple validation errors returned by LoginByEmailRequest_Auth.ValidateAll() if the designated constraints aren't met.
func (LoginByEmailRequest_AuthMultiError) AllErrors ¶
func (m LoginByEmailRequest_AuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginByEmailRequest_AuthMultiError) Error ¶
func (m LoginByEmailRequest_AuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginByEmailRequest_AuthValidationError ¶
type LoginByEmailRequest_AuthValidationError struct {
// contains filtered or unexported fields
}
LoginByEmailRequest_AuthValidationError is the validation error returned by LoginByEmailRequest_Auth.Validate if the designated constraints aren't met.
func (LoginByEmailRequest_AuthValidationError) Cause ¶
func (e LoginByEmailRequest_AuthValidationError) Cause() error
Cause function returns cause value.
func (LoginByEmailRequest_AuthValidationError) Error ¶
func (e LoginByEmailRequest_AuthValidationError) Error() string
Error satisfies the builtin error interface
func (LoginByEmailRequest_AuthValidationError) ErrorName ¶
func (e LoginByEmailRequest_AuthValidationError) ErrorName() string
ErrorName returns error name.
func (LoginByEmailRequest_AuthValidationError) Field ¶
func (e LoginByEmailRequest_AuthValidationError) Field() string
Field function returns field value.
func (LoginByEmailRequest_AuthValidationError) Key ¶
func (e LoginByEmailRequest_AuthValidationError) Key() bool
Key function returns key value.
func (LoginByEmailRequest_AuthValidationError) Reason ¶
func (e LoginByEmailRequest_AuthValidationError) Reason() string
Reason function returns reason value.
type LoginByPasswordRequest ¶
type LoginByPasswordRequest struct { // 请求体 Auth *LoginByPasswordRequest_Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
请求 - 密码登录
func (*LoginByPasswordRequest) Descriptor
deprecated
func (*LoginByPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginByPasswordRequest.ProtoReflect.Descriptor instead.
func (*LoginByPasswordRequest) GetAuth ¶
func (x *LoginByPasswordRequest) GetAuth() *LoginByPasswordRequest_Auth
func (*LoginByPasswordRequest) GetDomain ¶
func (x *LoginByPasswordRequest) GetDomain() string
func (*LoginByPasswordRequest) ProtoMessage ¶
func (*LoginByPasswordRequest) ProtoMessage()
func (*LoginByPasswordRequest) ProtoReflect ¶
func (x *LoginByPasswordRequest) ProtoReflect() protoreflect.Message
func (*LoginByPasswordRequest) Reset ¶
func (x *LoginByPasswordRequest) Reset()
func (*LoginByPasswordRequest) String ¶
func (x *LoginByPasswordRequest) String() string
func (*LoginByPasswordRequest) Validate ¶
func (m *LoginByPasswordRequest) Validate() error
Validate checks the field values on LoginByPasswordRequest 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 (*LoginByPasswordRequest) ValidateAll ¶
func (m *LoginByPasswordRequest) ValidateAll() error
ValidateAll checks the field values on LoginByPasswordRequest 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 LoginByPasswordRequestMultiError, or nil if none found.
type LoginByPasswordRequestMultiError ¶
type LoginByPasswordRequestMultiError []error
LoginByPasswordRequestMultiError is an error wrapping multiple validation errors returned by LoginByPasswordRequest.ValidateAll() if the designated constraints aren't met.
func (LoginByPasswordRequestMultiError) AllErrors ¶
func (m LoginByPasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginByPasswordRequestMultiError) Error ¶
func (m LoginByPasswordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginByPasswordRequestValidationError ¶
type LoginByPasswordRequestValidationError struct {
// contains filtered or unexported fields
}
LoginByPasswordRequestValidationError is the validation error returned by LoginByPasswordRequest.Validate if the designated constraints aren't met.
func (LoginByPasswordRequestValidationError) Cause ¶
func (e LoginByPasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginByPasswordRequestValidationError) Error ¶
func (e LoginByPasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginByPasswordRequestValidationError) ErrorName ¶
func (e LoginByPasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginByPasswordRequestValidationError) Field ¶
func (e LoginByPasswordRequestValidationError) Field() string
Field function returns field value.
func (LoginByPasswordRequestValidationError) Key ¶
func (e LoginByPasswordRequestValidationError) Key() bool
Key function returns key value.
func (LoginByPasswordRequestValidationError) Reason ¶
func (e LoginByPasswordRequestValidationError) Reason() string
Reason function returns reason value.
type LoginByPasswordRequest_Auth ¶
type LoginByPasswordRequest_Auth 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"` // contains filtered or unexported fields }
func (*LoginByPasswordRequest_Auth) Descriptor
deprecated
func (*LoginByPasswordRequest_Auth) Descriptor() ([]byte, []int)
Deprecated: Use LoginByPasswordRequest_Auth.ProtoReflect.Descriptor instead.
func (*LoginByPasswordRequest_Auth) GetAccount ¶
func (x *LoginByPasswordRequest_Auth) GetAccount() string
func (*LoginByPasswordRequest_Auth) GetPassword ¶
func (x *LoginByPasswordRequest_Auth) GetPassword() string
func (*LoginByPasswordRequest_Auth) ProtoMessage ¶
func (*LoginByPasswordRequest_Auth) ProtoMessage()
func (*LoginByPasswordRequest_Auth) ProtoReflect ¶
func (x *LoginByPasswordRequest_Auth) ProtoReflect() protoreflect.Message
func (*LoginByPasswordRequest_Auth) Reset ¶
func (x *LoginByPasswordRequest_Auth) Reset()
func (*LoginByPasswordRequest_Auth) String ¶
func (x *LoginByPasswordRequest_Auth) String() string
func (*LoginByPasswordRequest_Auth) Validate ¶
func (m *LoginByPasswordRequest_Auth) Validate() error
Validate checks the field values on LoginByPasswordRequest_Auth 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 (*LoginByPasswordRequest_Auth) ValidateAll ¶
func (m *LoginByPasswordRequest_Auth) ValidateAll() error
ValidateAll checks the field values on LoginByPasswordRequest_Auth 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 LoginByPasswordRequest_AuthMultiError, or nil if none found.
type LoginByPasswordRequest_AuthMultiError ¶
type LoginByPasswordRequest_AuthMultiError []error
LoginByPasswordRequest_AuthMultiError is an error wrapping multiple validation errors returned by LoginByPasswordRequest_Auth.ValidateAll() if the designated constraints aren't met.
func (LoginByPasswordRequest_AuthMultiError) AllErrors ¶
func (m LoginByPasswordRequest_AuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginByPasswordRequest_AuthMultiError) Error ¶
func (m LoginByPasswordRequest_AuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginByPasswordRequest_AuthValidationError ¶
type LoginByPasswordRequest_AuthValidationError struct {
// contains filtered or unexported fields
}
LoginByPasswordRequest_AuthValidationError is the validation error returned by LoginByPasswordRequest_Auth.Validate if the designated constraints aren't met.
func (LoginByPasswordRequest_AuthValidationError) Cause ¶
func (e LoginByPasswordRequest_AuthValidationError) Cause() error
Cause function returns cause value.
func (LoginByPasswordRequest_AuthValidationError) Error ¶
func (e LoginByPasswordRequest_AuthValidationError) Error() string
Error satisfies the builtin error interface
func (LoginByPasswordRequest_AuthValidationError) ErrorName ¶
func (e LoginByPasswordRequest_AuthValidationError) ErrorName() string
ErrorName returns error name.
func (LoginByPasswordRequest_AuthValidationError) Field ¶
func (e LoginByPasswordRequest_AuthValidationError) Field() string
Field function returns field value.
func (LoginByPasswordRequest_AuthValidationError) Key ¶
func (e LoginByPasswordRequest_AuthValidationError) Key() bool
Key function returns key value.
func (LoginByPasswordRequest_AuthValidationError) Reason ¶
func (e LoginByPasswordRequest_AuthValidationError) Reason() string
Reason function returns reason value.
type LoginBySmsRequest ¶
type LoginBySmsRequest struct { // 请求体 Auth *LoginBySmsRequest_Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
请求 - 短信登录
func (*LoginBySmsRequest) Descriptor
deprecated
func (*LoginBySmsRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginBySmsRequest.ProtoReflect.Descriptor instead.
func (*LoginBySmsRequest) GetAuth ¶
func (x *LoginBySmsRequest) GetAuth() *LoginBySmsRequest_Auth
func (*LoginBySmsRequest) GetDomain ¶
func (x *LoginBySmsRequest) GetDomain() string
func (*LoginBySmsRequest) ProtoMessage ¶
func (*LoginBySmsRequest) ProtoMessage()
func (*LoginBySmsRequest) ProtoReflect ¶
func (x *LoginBySmsRequest) ProtoReflect() protoreflect.Message
func (*LoginBySmsRequest) Reset ¶
func (x *LoginBySmsRequest) Reset()
func (*LoginBySmsRequest) String ¶
func (x *LoginBySmsRequest) String() string
func (*LoginBySmsRequest) Validate ¶
func (m *LoginBySmsRequest) Validate() error
Validate checks the field values on LoginBySmsRequest 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 (*LoginBySmsRequest) ValidateAll ¶
func (m *LoginBySmsRequest) ValidateAll() error
ValidateAll checks the field values on LoginBySmsRequest 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 LoginBySmsRequestMultiError, or nil if none found.
type LoginBySmsRequestMultiError ¶
type LoginBySmsRequestMultiError []error
LoginBySmsRequestMultiError is an error wrapping multiple validation errors returned by LoginBySmsRequest.ValidateAll() if the designated constraints aren't met.
func (LoginBySmsRequestMultiError) AllErrors ¶
func (m LoginBySmsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginBySmsRequestMultiError) Error ¶
func (m LoginBySmsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginBySmsRequestValidationError ¶
type LoginBySmsRequestValidationError struct {
// contains filtered or unexported fields
}
LoginBySmsRequestValidationError is the validation error returned by LoginBySmsRequest.Validate if the designated constraints aren't met.
func (LoginBySmsRequestValidationError) Cause ¶
func (e LoginBySmsRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginBySmsRequestValidationError) Error ¶
func (e LoginBySmsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginBySmsRequestValidationError) ErrorName ¶
func (e LoginBySmsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginBySmsRequestValidationError) Field ¶
func (e LoginBySmsRequestValidationError) Field() string
Field function returns field value.
func (LoginBySmsRequestValidationError) Key ¶
func (e LoginBySmsRequestValidationError) Key() bool
Key function returns key value.
func (LoginBySmsRequestValidationError) Reason ¶
func (e LoginBySmsRequestValidationError) Reason() string
Reason function returns reason value.
type LoginBySmsRequest_Auth ¶
type LoginBySmsRequest_Auth struct { Phone string `protobuf:"bytes,1,opt,name=phone,proto3" json:"phone,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*LoginBySmsRequest_Auth) Descriptor
deprecated
func (*LoginBySmsRequest_Auth) Descriptor() ([]byte, []int)
Deprecated: Use LoginBySmsRequest_Auth.ProtoReflect.Descriptor instead.
func (*LoginBySmsRequest_Auth) GetCode ¶
func (x *LoginBySmsRequest_Auth) GetCode() string
func (*LoginBySmsRequest_Auth) GetPhone ¶
func (x *LoginBySmsRequest_Auth) GetPhone() string
func (*LoginBySmsRequest_Auth) ProtoMessage ¶
func (*LoginBySmsRequest_Auth) ProtoMessage()
func (*LoginBySmsRequest_Auth) ProtoReflect ¶
func (x *LoginBySmsRequest_Auth) ProtoReflect() protoreflect.Message
func (*LoginBySmsRequest_Auth) Reset ¶
func (x *LoginBySmsRequest_Auth) Reset()
func (*LoginBySmsRequest_Auth) String ¶
func (x *LoginBySmsRequest_Auth) String() string
func (*LoginBySmsRequest_Auth) Validate ¶
func (m *LoginBySmsRequest_Auth) Validate() error
Validate checks the field values on LoginBySmsRequest_Auth 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 (*LoginBySmsRequest_Auth) ValidateAll ¶
func (m *LoginBySmsRequest_Auth) ValidateAll() error
ValidateAll checks the field values on LoginBySmsRequest_Auth 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 LoginBySmsRequest_AuthMultiError, or nil if none found.
type LoginBySmsRequest_AuthMultiError ¶
type LoginBySmsRequest_AuthMultiError []error
LoginBySmsRequest_AuthMultiError is an error wrapping multiple validation errors returned by LoginBySmsRequest_Auth.ValidateAll() if the designated constraints aren't met.
func (LoginBySmsRequest_AuthMultiError) AllErrors ¶
func (m LoginBySmsRequest_AuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginBySmsRequest_AuthMultiError) Error ¶
func (m LoginBySmsRequest_AuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginBySmsRequest_AuthValidationError ¶
type LoginBySmsRequest_AuthValidationError struct {
// contains filtered or unexported fields
}
LoginBySmsRequest_AuthValidationError is the validation error returned by LoginBySmsRequest_Auth.Validate if the designated constraints aren't met.
func (LoginBySmsRequest_AuthValidationError) Cause ¶
func (e LoginBySmsRequest_AuthValidationError) Cause() error
Cause function returns cause value.
func (LoginBySmsRequest_AuthValidationError) Error ¶
func (e LoginBySmsRequest_AuthValidationError) Error() string
Error satisfies the builtin error interface
func (LoginBySmsRequest_AuthValidationError) ErrorName ¶
func (e LoginBySmsRequest_AuthValidationError) ErrorName() string
ErrorName returns error name.
func (LoginBySmsRequest_AuthValidationError) Field ¶
func (e LoginBySmsRequest_AuthValidationError) Field() string
Field function returns field value.
func (LoginBySmsRequest_AuthValidationError) Key ¶
func (e LoginBySmsRequest_AuthValidationError) Key() bool
Key function returns key value.
func (LoginBySmsRequest_AuthValidationError) Reason ¶
func (e LoginBySmsRequest_AuthValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct { // 访问token Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // 刷新token RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` // 过期时间 ExpireTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` // contains filtered or unexported fields }
回应 - 登录
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetExpireTime ¶
func (x *LoginResponse) GetExpireTime() *timestamppb.Timestamp
func (*LoginResponse) GetRefreshToken ¶
func (x *LoginResponse) GetRefreshToken() string
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse 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 (*LoginResponse) ValidateAll ¶
func (m *LoginResponse) ValidateAll() error
ValidateAll checks the field values on LoginResponse 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 LoginResponseMultiError, or nil if none found.
type LoginResponseMultiError ¶
type LoginResponseMultiError []error
LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.
func (LoginResponseMultiError) AllErrors ¶
func (m LoginResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginResponseMultiError) Error ¶
func (m LoginResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type LogoutRequest ¶
type LogoutRequest struct {
// contains filtered or unexported fields
}
func (*LogoutRequest) Descriptor
deprecated
func (*LogoutRequest) Descriptor() ([]byte, []int)
Deprecated: Use LogoutRequest.ProtoReflect.Descriptor instead.
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) ProtoReflect ¶
func (x *LogoutRequest) ProtoReflect() protoreflect.Message
func (*LogoutRequest) Reset ¶
func (x *LogoutRequest) Reset()
func (*LogoutRequest) String ¶
func (x *LogoutRequest) String() string
func (*LogoutRequest) Validate ¶
func (m *LogoutRequest) Validate() error
Validate checks the field values on LogoutRequest 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 (*LogoutRequest) ValidateAll ¶
func (m *LogoutRequest) ValidateAll() error
ValidateAll checks the field values on LogoutRequest 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 LogoutRequestMultiError, or nil if none found.
type LogoutRequestMultiError ¶
type LogoutRequestMultiError []error
LogoutRequestMultiError is an error wrapping multiple validation errors returned by LogoutRequest.ValidateAll() if the designated constraints aren't met.
func (LogoutRequestMultiError) AllErrors ¶
func (m LogoutRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutRequestMultiError) Error ¶
func (m LogoutRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutRequestValidationError ¶
type LogoutRequestValidationError struct {
// contains filtered or unexported fields
}
LogoutRequestValidationError is the validation error returned by LogoutRequest.Validate if the designated constraints aren't met.
func (LogoutRequestValidationError) Cause ¶
func (e LogoutRequestValidationError) Cause() error
Cause function returns cause value.
func (LogoutRequestValidationError) Error ¶
func (e LogoutRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutRequestValidationError) ErrorName ¶
func (e LogoutRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutRequestValidationError) Field ¶
func (e LogoutRequestValidationError) Field() string
Field function returns field value.
func (LogoutRequestValidationError) Key ¶
func (e LogoutRequestValidationError) Key() bool
Key function returns key value.
func (LogoutRequestValidationError) Reason ¶
func (e LogoutRequestValidationError) Reason() string
Reason function returns reason value.
type LogoutResponse ¶
type LogoutResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Result *anypb.Any `protobuf:"bytes,3,opt,name=result,proto3,oneof" json:"result,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
回应 - 退出登录
func (*LogoutResponse) Descriptor
deprecated
func (*LogoutResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogoutResponse.ProtoReflect.Descriptor instead.
func (*LogoutResponse) GetCode ¶
func (x *LogoutResponse) GetCode() int32
func (*LogoutResponse) GetMessage ¶
func (x *LogoutResponse) GetMessage() string
func (*LogoutResponse) GetResult ¶
func (x *LogoutResponse) GetResult() *anypb.Any
func (*LogoutResponse) GetType ¶
func (x *LogoutResponse) GetType() string
func (*LogoutResponse) ProtoMessage ¶
func (*LogoutResponse) ProtoMessage()
func (*LogoutResponse) ProtoReflect ¶
func (x *LogoutResponse) ProtoReflect() protoreflect.Message
func (*LogoutResponse) Reset ¶
func (x *LogoutResponse) Reset()
func (*LogoutResponse) String ¶
func (x *LogoutResponse) String() string
func (*LogoutResponse) Validate ¶
func (m *LogoutResponse) Validate() error
Validate checks the field values on LogoutResponse 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 (*LogoutResponse) ValidateAll ¶
func (m *LogoutResponse) ValidateAll() error
ValidateAll checks the field values on LogoutResponse 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 LogoutResponseMultiError, or nil if none found.
type LogoutResponseMultiError ¶
type LogoutResponseMultiError []error
LogoutResponseMultiError is an error wrapping multiple validation errors returned by LogoutResponse.ValidateAll() if the designated constraints aren't met.
func (LogoutResponseMultiError) AllErrors ¶
func (m LogoutResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutResponseMultiError) Error ¶
func (m LogoutResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutResponseValidationError ¶
type LogoutResponseValidationError struct {
// contains filtered or unexported fields
}
LogoutResponseValidationError is the validation error returned by LogoutResponse.Validate if the designated constraints aren't met.
func (LogoutResponseValidationError) Cause ¶
func (e LogoutResponseValidationError) Cause() error
Cause function returns cause value.
func (LogoutResponseValidationError) Error ¶
func (e LogoutResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutResponseValidationError) ErrorName ¶
func (e LogoutResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutResponseValidationError) Field ¶
func (e LogoutResponseValidationError) Field() string
Field function returns field value.
func (LogoutResponseValidationError) Key ¶
func (e LogoutResponseValidationError) Key() bool
Key function returns key value.
func (LogoutResponseValidationError) Reason ¶
func (e LogoutResponseValidationError) Reason() string
Reason function returns reason value.
type RegisterRequest ¶
type RegisterRequest struct { // 请求体 Auth *RegisterRequest_Auth `protobuf:"bytes,1,opt,name=auth,proto3" json:"auth,omitempty"` Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
请求 - 注册
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetAuth ¶
func (x *RegisterRequest) GetAuth() *RegisterRequest_Auth
func (*RegisterRequest) GetDomain ¶
func (x *RegisterRequest) GetDomain() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
func (*RegisterRequest) Validate ¶
func (m *RegisterRequest) Validate() error
Validate checks the field values on RegisterRequest 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 (*RegisterRequest) ValidateAll ¶
func (m *RegisterRequest) ValidateAll() error
ValidateAll checks the field values on RegisterRequest 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 RegisterRequestMultiError, or nil if none found.
type RegisterRequestMultiError ¶
type RegisterRequestMultiError []error
RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.
func (RegisterRequestMultiError) AllErrors ¶
func (m RegisterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRequestMultiError) Error ¶
func (m RegisterRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRequestValidationError ¶
type RegisterRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.
func (RegisterRequestValidationError) Cause ¶
func (e RegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequestValidationError) Error ¶
func (e RegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequestValidationError) ErrorName ¶
func (e RegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequestValidationError) Field ¶
func (e RegisterRequestValidationError) Field() string
Field function returns field value.
func (RegisterRequestValidationError) Key ¶
func (e RegisterRequestValidationError) Key() bool
Key function returns key value.
func (RegisterRequestValidationError) Reason ¶
func (e RegisterRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterRequest_Auth ¶
type RegisterRequest_Auth struct { // 用户名 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 密码 Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // 电话 Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest_Auth) Descriptor
deprecated
func (*RegisterRequest_Auth) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest_Auth.ProtoReflect.Descriptor instead.
func (*RegisterRequest_Auth) GetName ¶
func (x *RegisterRequest_Auth) GetName() string
func (*RegisterRequest_Auth) GetPassword ¶
func (x *RegisterRequest_Auth) GetPassword() string
func (*RegisterRequest_Auth) GetPhone ¶
func (x *RegisterRequest_Auth) GetPhone() string
func (*RegisterRequest_Auth) ProtoMessage ¶
func (*RegisterRequest_Auth) ProtoMessage()
func (*RegisterRequest_Auth) ProtoReflect ¶
func (x *RegisterRequest_Auth) ProtoReflect() protoreflect.Message
func (*RegisterRequest_Auth) Reset ¶
func (x *RegisterRequest_Auth) Reset()
func (*RegisterRequest_Auth) String ¶
func (x *RegisterRequest_Auth) String() string
func (*RegisterRequest_Auth) Validate ¶
func (m *RegisterRequest_Auth) Validate() error
Validate checks the field values on RegisterRequest_Auth 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 (*RegisterRequest_Auth) ValidateAll ¶
func (m *RegisterRequest_Auth) ValidateAll() error
ValidateAll checks the field values on RegisterRequest_Auth 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 RegisterRequest_AuthMultiError, or nil if none found.
type RegisterRequest_AuthMultiError ¶
type RegisterRequest_AuthMultiError []error
RegisterRequest_AuthMultiError is an error wrapping multiple validation errors returned by RegisterRequest_Auth.ValidateAll() if the designated constraints aren't met.
func (RegisterRequest_AuthMultiError) AllErrors ¶
func (m RegisterRequest_AuthMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRequest_AuthMultiError) Error ¶
func (m RegisterRequest_AuthMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRequest_AuthValidationError ¶
type RegisterRequest_AuthValidationError struct {
// contains filtered or unexported fields
}
RegisterRequest_AuthValidationError is the validation error returned by RegisterRequest_Auth.Validate if the designated constraints aren't met.
func (RegisterRequest_AuthValidationError) Cause ¶
func (e RegisterRequest_AuthValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequest_AuthValidationError) Error ¶
func (e RegisterRequest_AuthValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequest_AuthValidationError) ErrorName ¶
func (e RegisterRequest_AuthValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequest_AuthValidationError) Field ¶
func (e RegisterRequest_AuthValidationError) Field() string
Field function returns field value.
func (RegisterRequest_AuthValidationError) Key ¶
func (e RegisterRequest_AuthValidationError) Key() bool
Key function returns key value.
func (RegisterRequest_AuthValidationError) Reason ¶
func (e RegisterRequest_AuthValidationError) Reason() string
Reason function returns reason value.
type RegisterResponse ¶
type RegisterResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Result *anypb.Any `protobuf:"bytes,3,opt,name=result,proto3,oneof" json:"result,omitempty"` Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
回应 - 注册
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetCode ¶
func (x *RegisterResponse) GetCode() int32
func (*RegisterResponse) GetMessage ¶
func (x *RegisterResponse) GetMessage() string
func (*RegisterResponse) GetResult ¶
func (x *RegisterResponse) GetResult() *anypb.Any
func (*RegisterResponse) GetType ¶
func (x *RegisterResponse) GetType() string
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
func (*RegisterResponse) Validate ¶
func (m *RegisterResponse) Validate() error
Validate checks the field values on RegisterResponse 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 (*RegisterResponse) ValidateAll ¶
func (m *RegisterResponse) ValidateAll() error
ValidateAll checks the field values on RegisterResponse 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 RegisterResponseMultiError, or nil if none found.
type RegisterResponseMultiError ¶
type RegisterResponseMultiError []error
RegisterResponseMultiError is an error wrapping multiple validation errors returned by RegisterResponse.ValidateAll() if the designated constraints aren't met.
func (RegisterResponseMultiError) AllErrors ¶
func (m RegisterResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterResponseMultiError) Error ¶
func (m RegisterResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterResponseValidationError ¶
type RegisterResponseValidationError struct {
// contains filtered or unexported fields
}
RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.
func (RegisterResponseValidationError) Cause ¶
func (e RegisterResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterResponseValidationError) Error ¶
func (e RegisterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterResponseValidationError) ErrorName ¶
func (e RegisterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterResponseValidationError) Field ¶
func (e RegisterResponseValidationError) Field() string
Field function returns field value.
func (RegisterResponseValidationError) Key ¶
func (e RegisterResponseValidationError) Key() bool
Key function returns key value.
func (RegisterResponseValidationError) Reason ¶
func (e RegisterResponseValidationError) Reason() string
Reason function returns reason value.
type Role ¶
type Role struct { CreatedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` DefaultRouter *string `protobuf:"bytes,6,opt,name=default_router,json=defaultRouter,proto3,oneof" json:"default_router,omitempty"` Sort *int32 `protobuf:"varint,7,opt,name=sort,proto3,oneof" json:"sort,omitempty"` DataScope *int32 `protobuf:"varint,8,opt,name=data_scope,json=dataScope,proto3,oneof" json:"data_scope,omitempty"` MenuCheckStrictly *int32 `protobuf:"varint,9,opt,name=menu_check_strictly,json=menuCheckStrictly,proto3,oneof" json:"menu_check_strictly,omitempty"` DeptCheckStrictly *int32 `protobuf:"varint,10,opt,name=dept_check_strictly,json=deptCheckStrictly,proto3,oneof" json:"dept_check_strictly,omitempty"` State *int32 `protobuf:"varint,11,opt,name=state,proto3,oneof" json:"state,omitempty"` Remark *string `protobuf:"bytes,12,opt,name=remark,proto3,oneof" json:"remark,omitempty"` // contains filtered or unexported fields }
角色模块
func (*Role) Descriptor
deprecated
func (*Role) GetCreatedAt ¶
func (x *Role) GetCreatedAt() *timestamppb.Timestamp
func (*Role) GetDataScope ¶
func (*Role) GetDefaultRouter ¶
func (*Role) GetDeptCheckStrictly ¶
func (*Role) GetMenuCheckStrictly ¶
func (*Role) GetUpdatedAt ¶
func (x *Role) GetUpdatedAt() *timestamppb.Timestamp
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
func (*Role) Validate ¶
Validate checks the field values on Role 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 (*Role) ValidateAll ¶
ValidateAll checks the field values on Role 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 RoleMultiError, or nil if none found.
type RoleMultiError ¶
type RoleMultiError []error
RoleMultiError is an error wrapping multiple validation errors returned by Role.ValidateAll() if the designated constraints aren't met.
func (RoleMultiError) AllErrors ¶
func (m RoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleMultiError) Error ¶
func (m RoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleServiceClient ¶
type RoleServiceClient interface { CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error) GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error) ListRole(ctx context.Context, in *ListRoleRequest, opts ...grpc.CallOption) (*ListRoleResponse, error) }
RoleServiceClient is the client API for RoleService 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 NewRoleServiceClient ¶
func NewRoleServiceClient(cc grpc.ClientConnInterface) RoleServiceClient
type RoleServiceHTTPClient ¶
type RoleServiceHTTPClient interface {
CreateRole(ctx context.Context, req *CreateRoleRequest, opts ...http.CallOption) (rsp *CreateRoleResponse, err error)
}
func NewRoleServiceHTTPClient ¶
func NewRoleServiceHTTPClient(client *http.Client) RoleServiceHTTPClient
type RoleServiceHTTPClientImpl ¶
type RoleServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*RoleServiceHTTPClientImpl) CreateRole ¶
func (c *RoleServiceHTTPClientImpl) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...http.CallOption) (*CreateRoleResponse, error)
type RoleServiceHTTPServer ¶
type RoleServiceHTTPServer interface {
CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
}
type RoleServiceServer ¶
type RoleServiceServer interface { CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error) ListRole(context.Context, *ListRoleRequest) (*ListRoleResponse, error) // contains filtered or unexported methods }
RoleServiceServer is the server API for RoleService service. All implementations must embed UnimplementedRoleServiceServer for forward compatibility
type RoleValidationError ¶
type RoleValidationError struct {
// contains filtered or unexported fields
}
RoleValidationError is the validation error returned by Role.Validate if the designated constraints aren't met.
func (RoleValidationError) Cause ¶
func (e RoleValidationError) Cause() error
Cause function returns cause value.
func (RoleValidationError) Error ¶
func (e RoleValidationError) Error() string
Error satisfies the builtin error interface
func (RoleValidationError) ErrorName ¶
func (e RoleValidationError) ErrorName() string
ErrorName returns error name.
func (RoleValidationError) Field ¶
func (e RoleValidationError) Field() string
Field function returns field value.
func (RoleValidationError) Key ¶
func (e RoleValidationError) Key() bool
Key function returns key value.
func (RoleValidationError) Reason ¶
func (e RoleValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) GetAuthInfo ¶
func (UnimplementedAuthServiceServer) GetAuthInfo(context.Context, *GetAuthInfoRequest) (*GetAuthInfoResponse, error)
func (UnimplementedAuthServiceServer) GetAuthProfile ¶
func (UnimplementedAuthServiceServer) GetAuthProfile(context.Context, *GetAuthProfileRequest) (*GetAuthProfileResponse, error)
func (UnimplementedAuthServiceServer) LoginByEmail ¶
func (UnimplementedAuthServiceServer) LoginByEmail(context.Context, *LoginByEmailRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) LoginByPassword ¶
func (UnimplementedAuthServiceServer) LoginByPassword(context.Context, *LoginByPasswordRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) LoginBySms ¶
func (UnimplementedAuthServiceServer) LoginBySms(context.Context, *LoginBySmsRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) Logout ¶
func (UnimplementedAuthServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutResponse, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
type UnimplementedRoleServiceServer ¶
type UnimplementedRoleServiceServer struct { }
UnimplementedRoleServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRoleServiceServer) CreateRole ¶
func (UnimplementedRoleServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
func (UnimplementedRoleServiceServer) DeleteRole ¶
func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
func (UnimplementedRoleServiceServer) GetRole ¶
func (UnimplementedRoleServiceServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
func (UnimplementedRoleServiceServer) ListRole ¶
func (UnimplementedRoleServiceServer) ListRole(context.Context, *ListRoleRequest) (*ListRoleResponse, error)
func (UnimplementedRoleServiceServer) UpdateRole ¶
func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error)
func (UnimplementedUserServiceServer) ListUser ¶
func (UnimplementedUserServiceServer) ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeRoleServiceServer ¶
type UnsafeRoleServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRoleServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RoleServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct {
// contains filtered or unexported fields
}
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string
func (*UpdateRoleRequest) Validate ¶
func (m *UpdateRoleRequest) Validate() error
Validate checks the field values on UpdateRoleRequest 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 (*UpdateRoleRequest) ValidateAll ¶
func (m *UpdateRoleRequest) ValidateAll() error
ValidateAll checks the field values on UpdateRoleRequest 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 UpdateRoleRequestMultiError, or nil if none found.
type UpdateRoleRequestMultiError ¶
type UpdateRoleRequestMultiError []error
UpdateRoleRequestMultiError is an error wrapping multiple validation errors returned by UpdateRoleRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleRequestMultiError) AllErrors ¶
func (m UpdateRoleRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleRequestMultiError) Error ¶
func (m UpdateRoleRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleRequestValidationError ¶
type UpdateRoleRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleRequestValidationError is the validation error returned by UpdateRoleRequest.Validate if the designated constraints aren't met.
func (UpdateRoleRequestValidationError) Cause ¶
func (e UpdateRoleRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleRequestValidationError) Error ¶
func (e UpdateRoleRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleRequestValidationError) ErrorName ¶
func (e UpdateRoleRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleRequestValidationError) Field ¶
func (e UpdateRoleRequestValidationError) Field() string
Field function returns field value.
func (UpdateRoleRequestValidationError) Key ¶
func (e UpdateRoleRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRoleRequestValidationError) Reason ¶
func (e UpdateRoleRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateRoleResponse ¶
type UpdateRoleResponse struct {
// contains filtered or unexported fields
}
func (*UpdateRoleResponse) Descriptor
deprecated
func (*UpdateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.
func (*UpdateRoleResponse) ProtoMessage ¶
func (*UpdateRoleResponse) ProtoMessage()
func (*UpdateRoleResponse) ProtoReflect ¶
func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message
func (*UpdateRoleResponse) Reset ¶
func (x *UpdateRoleResponse) Reset()
func (*UpdateRoleResponse) String ¶
func (x *UpdateRoleResponse) String() string
func (*UpdateRoleResponse) Validate ¶
func (m *UpdateRoleResponse) Validate() error
Validate checks the field values on UpdateRoleResponse 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 (*UpdateRoleResponse) ValidateAll ¶
func (m *UpdateRoleResponse) ValidateAll() error
ValidateAll checks the field values on UpdateRoleResponse 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 UpdateRoleResponseMultiError, or nil if none found.
type UpdateRoleResponseMultiError ¶
type UpdateRoleResponseMultiError []error
UpdateRoleResponseMultiError is an error wrapping multiple validation errors returned by UpdateRoleResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateRoleResponseMultiError) AllErrors ¶
func (m UpdateRoleResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRoleResponseMultiError) Error ¶
func (m UpdateRoleResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateRoleResponseValidationError ¶
type UpdateRoleResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateRoleResponseValidationError is the validation error returned by UpdateRoleResponse.Validate if the designated constraints aren't met.
func (UpdateRoleResponseValidationError) Cause ¶
func (e UpdateRoleResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateRoleResponseValidationError) Error ¶
func (e UpdateRoleResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRoleResponseValidationError) ErrorName ¶
func (e UpdateRoleResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRoleResponseValidationError) Field ¶
func (e UpdateRoleResponseValidationError) Field() string
Field function returns field value.
func (UpdateRoleResponseValidationError) Key ¶
func (e UpdateRoleResponseValidationError) Key() bool
Key function returns key value.
func (UpdateRoleResponseValidationError) Reason ¶
func (e UpdateRoleResponseValidationError) Reason() string
Reason function returns reason value.
type UpdateUserRequest ¶
type UpdateUserRequest struct {
// contains filtered or unexported fields
}
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
func (*UpdateUserRequest) Validate ¶
func (m *UpdateUserRequest) Validate() error
Validate checks the field values on UpdateUserRequest 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 (*UpdateUserRequest) ValidateAll ¶
func (m *UpdateUserRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserRequest 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 UpdateUserRequestMultiError, or nil if none found.
type UpdateUserRequestMultiError ¶
type UpdateUserRequestMultiError []error
UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserRequestMultiError) AllErrors ¶
func (m UpdateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserRequestMultiError) Error ¶
func (m UpdateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserRequestValidationError ¶
type UpdateUserRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.
func (UpdateUserRequestValidationError) Cause ¶
func (e UpdateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserRequestValidationError) Error ¶
func (e UpdateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserRequestValidationError) ErrorName ¶
func (e UpdateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserRequestValidationError) Field ¶
func (e UpdateUserRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserRequestValidationError) Key ¶
func (e UpdateUserRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserRequestValidationError) Reason ¶
func (e UpdateUserRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserResponse ¶
type UpdateUserResponse struct {
// contains filtered or unexported fields
}
func (*UpdateUserResponse) Descriptor
deprecated
func (*UpdateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.
func (*UpdateUserResponse) ProtoMessage ¶
func (*UpdateUserResponse) ProtoMessage()
func (*UpdateUserResponse) ProtoReflect ¶
func (x *UpdateUserResponse) ProtoReflect() protoreflect.Message
func (*UpdateUserResponse) Reset ¶
func (x *UpdateUserResponse) Reset()
func (*UpdateUserResponse) String ¶
func (x *UpdateUserResponse) String() string
func (*UpdateUserResponse) Validate ¶
func (m *UpdateUserResponse) Validate() error
Validate checks the field values on UpdateUserResponse 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 (*UpdateUserResponse) ValidateAll ¶
func (m *UpdateUserResponse) ValidateAll() error
ValidateAll checks the field values on UpdateUserResponse 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 UpdateUserResponseMultiError, or nil if none found.
type UpdateUserResponseMultiError ¶
type UpdateUserResponseMultiError []error
UpdateUserResponseMultiError is an error wrapping multiple validation errors returned by UpdateUserResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateUserResponseMultiError) AllErrors ¶
func (m UpdateUserResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserResponseMultiError) Error ¶
func (m UpdateUserResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserResponseValidationError ¶
type UpdateUserResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateUserResponseValidationError is the validation error returned by UpdateUserResponse.Validate if the designated constraints aren't met.
func (UpdateUserResponseValidationError) Cause ¶
func (e UpdateUserResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserResponseValidationError) Error ¶
func (e UpdateUserResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserResponseValidationError) ErrorName ¶
func (e UpdateUserResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserResponseValidationError) Field ¶
func (e UpdateUserResponseValidationError) Field() string
Field function returns field value.
func (UpdateUserResponseValidationError) Key ¶
func (e UpdateUserResponseValidationError) Key() bool
Key function returns key value.
func (UpdateUserResponseValidationError) Reason ¶
func (e UpdateUserResponseValidationError) Reason() string
Reason function returns reason value.
type User ¶
type User struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` NickName *string `protobuf:"bytes,4,opt,name=nick_name,json=nickName,proto3,oneof" json:"nick_name,omitempty"` RealName *string `protobuf:"bytes,5,opt,name=real_name,json=realName,proto3,oneof" json:"real_name,omitempty"` Birthday *string `protobuf:"bytes,6,opt,name=birthday,proto3,oneof" json:"birthday,omitempty"` Gender *int32 `protobuf:"varint,7,opt,name=gender,proto3,oneof" json:"gender,omitempty"` Phone *string `protobuf:"bytes,8,opt,name=phone,proto3,oneof" json:"phone,omitempty"` Email *string `protobuf:"bytes,9,opt,name=email,proto3,oneof" json:"email,omitempty"` Avatar *string `protobuf:"bytes,10,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` State *int32 `protobuf:"varint,11,opt,name=state,proto3,oneof" json:"state,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3,oneof" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetBirthday ¶
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetNickName ¶
func (*User) GetRealName ¶
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
func (*User) Validate ¶
Validate checks the field values on User 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 (*User) ValidateAll ¶
ValidateAll checks the field values on User 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 UserMultiError, or nil if none found.
type UserMultiError ¶
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserServiceClient ¶
type UserServiceClient interface { UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error) DeleteUser(ctx context.Context, in *DeleteUserRequest, opts ...grpc.CallOption) (*DeleteUserResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error) ListUser(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserResponse, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceHTTPClient ¶
type UserServiceHTTPClient interface {
UpdateUser(ctx context.Context, req *UpdateUserRequest, opts ...http.CallOption) (rsp *UpdateUserResponse, err error)
}
func NewUserServiceHTTPClient ¶
func NewUserServiceHTTPClient(client *http.Client) UserServiceHTTPClient
type UserServiceHTTPClientImpl ¶
type UserServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserServiceHTTPClientImpl) UpdateUser ¶
func (c *UserServiceHTTPClientImpl) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...http.CallOption) (*UpdateUserResponse, error)
type UserServiceHTTPServer ¶
type UserServiceHTTPServer interface {
UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
}
type UserServiceServer ¶
type UserServiceServer interface { UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error) DeleteUser(context.Context, *DeleteUserRequest) (*DeleteUserResponse, error) GetUser(context.Context, *GetUserRequest) (*GetUserResponse, error) ListUser(context.Context, *ListUserRequest) (*ListUserResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.