v1

package
v0.0.0-...-96f2668 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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"
)
View Source
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"
)
View Source
const OperationAuthServiceGetAuthInfo = "/saasdesk.service.v1.AuthService/GetAuthInfo"
View Source
const OperationAuthServiceGetAuthProfile = "/saasdesk.service.v1.AuthService/GetAuthProfile"
View Source
const OperationAuthServiceLoginByEmail = "/saasdesk.service.v1.AuthService/LoginByEmail"
View Source
const OperationAuthServiceLoginByPassword = "/saasdesk.service.v1.AuthService/LoginByPassword"
View Source
const OperationAuthServiceLoginBySms = "/saasdesk.service.v1.AuthService/LoginBySms"
View Source
const OperationAuthServiceLogout = "/saasdesk.service.v1.AuthService/Logout"
View Source
const OperationAuthServiceRegister = "/saasdesk.service.v1.AuthService/Register"
View Source
const OperationRoleServiceCreateRole = "/saasdesk.service.v1.RoleService/CreateRole"
View Source
const OperationUserServiceUpdateUser = "/saasdesk.service.v1.UserService/UpdateUser"

Variables

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

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

View Source
var File_saasdesk_service_v1_auth_proto protoreflect.FileDescriptor
View Source
var File_saasdesk_service_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_saasdesk_service_v1_role_proto protoreflect.FileDescriptor
View Source
var File_saasdesk_service_v1_user_proto protoreflect.FileDescriptor
View Source
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)

View Source
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 ErrorUnspecified(format string, args ...interface{}) *errors.Error

func ErrorUserNotFound

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

func IsUnspecified

func IsUnspecified(err error) bool

func IsUserNotFound

func IsUserNotFound(err error) bool

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.

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 (*AuthServiceHTTPClientImpl) GetAuthProfile

func (*AuthServiceHTTPClientImpl) LoginByEmail

func (*AuthServiceHTTPClientImpl) LoginByPassword

func (*AuthServiceHTTPClientImpl) LoginBySms

func (*AuthServiceHTTPClientImpl) Logout

func (*AuthServiceHTTPClientImpl) Register

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

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

Cause function returns cause value.

func (CreateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateRoleRequestValidationError) Field

Field function returns field value.

func (CreateRoleRequestValidationError) Key

Key function returns key value.

func (CreateRoleRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CreateRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateRoleResponseValidationError) Field

Field function returns field value.

func (CreateRoleResponseValidationError) Key

Key function returns key value.

func (CreateRoleResponseValidationError) Reason

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

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

Cause function returns cause value.

func (CreateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateUserRequestValidationError) Field

Field function returns field value.

func (CreateUserRequestValidationError) Key

Key function returns key value.

func (CreateUserRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CreateUserResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateUserResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateUserResponseValidationError) Field

Field function returns field value.

func (CreateUserResponseValidationError) Key

Key function returns key value.

func (CreateUserResponseValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleRequestValidationError) Field

Field function returns field value.

func (DeleteRoleRequestValidationError) Key

Key function returns key value.

func (DeleteRoleRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteRoleResponseValidationError) Field

Field function returns field value.

func (DeleteRoleResponseValidationError) Key

Key function returns key value.

func (DeleteRoleResponseValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteUserRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserRequestValidationError) Field

Field function returns field value.

func (DeleteUserRequestValidationError) Key

Key function returns key value.

func (DeleteUserRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteUserResponseValidationError) Error

Error satisfies the builtin error interface

func (DeleteUserResponseValidationError) ErrorName

ErrorName returns error name.

func (DeleteUserResponseValidationError) Field

Field function returns field value.

func (DeleteUserResponseValidationError) Key

Key function returns key value.

func (DeleteUserResponseValidationError) Reason

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

func (x ErrorReason) Enum() *ErrorReason

func (ErrorReason) EnumDescriptor deprecated

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

Deprecated: Use ErrorReason.Descriptor instead.

func (ErrorReason) Number

func (x ErrorReason) Number() protoreflect.EnumNumber

func (ErrorReason) String

func (x ErrorReason) String() string

func (ErrorReason) Type

type 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

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

Cause function returns cause value.

func (GetAuthInfoRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAuthInfoRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAuthInfoRequestValidationError) Field

Field function returns field value.

func (GetAuthInfoRequestValidationError) Key

Key function returns key value.

func (GetAuthInfoRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetAuthInfoResponseValidationError) Error

Error satisfies the builtin error interface

func (GetAuthInfoResponseValidationError) ErrorName

ErrorName returns error name.

func (GetAuthInfoResponseValidationError) Field

Field function returns field value.

func (GetAuthInfoResponseValidationError) Key

Key function returns key value.

func (GetAuthInfoResponseValidationError) Reason

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

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

Cause function returns cause value.

func (GetAuthProfileRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAuthProfileRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAuthProfileRequestValidationError) Field

Field function returns field value.

func (GetAuthProfileRequestValidationError) Key

Key function returns key value.

func (GetAuthProfileRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetAuthProfileResponseValidationError) Error

Error satisfies the builtin error interface

func (GetAuthProfileResponseValidationError) ErrorName

ErrorName returns error name.

func (GetAuthProfileResponseValidationError) Field

Field function returns field value.

func (GetAuthProfileResponseValidationError) Key

Key function returns key value.

func (GetAuthProfileResponseValidationError) Reason

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

Cause function returns cause value.

func (GetRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRoleRequestValidationError) ErrorName

func (e GetRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleRequestValidationError) Field

Field function returns field value.

func (GetRoleRequestValidationError) Key

Key function returns key value.

func (GetRoleRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (GetRoleResponseValidationError) ErrorName

func (e GetRoleResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetRoleResponseValidationError) Field

Field function returns field value.

func (GetRoleResponseValidationError) Key

Key function returns key value.

func (GetRoleResponseValidationError) Reason

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

Cause function returns cause value.

func (GetUserRequestValidationError) Error

Error satisfies the builtin error interface

func (GetUserRequestValidationError) ErrorName

func (e GetUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserRequestValidationError) Field

Field function returns field value.

func (GetUserRequestValidationError) Key

Key function returns key value.

func (GetUserRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetUserResponseValidationError) Error

Error satisfies the builtin error interface

func (GetUserResponseValidationError) ErrorName

func (e GetUserResponseValidationError) ErrorName() string

ErrorName returns error name.

func (GetUserResponseValidationError) Field

Field function returns field value.

func (GetUserResponseValidationError) Key

Key function returns key value.

func (GetUserResponseValidationError) Reason

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

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

Cause function returns cause value.

func (ListRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (ListRoleRequestValidationError) ErrorName

func (e ListRoleRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListRoleRequestValidationError) Field

Field function returns field value.

func (ListRoleRequestValidationError) Key

Key function returns key value.

func (ListRoleRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (ListRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (ListRoleResponseValidationError) Field

Field function returns field value.

func (ListRoleResponseValidationError) Key

Key function returns key value.

func (ListRoleResponseValidationError) Reason

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

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

Cause function returns cause value.

func (ListUserRequestValidationError) Error

Error satisfies the builtin error interface

func (ListUserRequestValidationError) ErrorName

func (e ListUserRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListUserRequestValidationError) Field

Field function returns field value.

func (ListUserRequestValidationError) Key

Key function returns key value.

func (ListUserRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListUserResponseValidationError) Error

Error satisfies the builtin error interface

func (ListUserResponseValidationError) ErrorName

ErrorName returns error name.

func (ListUserResponseValidationError) Field

Field function returns field value.

func (ListUserResponseValidationError) Key

Key function returns key value.

func (ListUserResponseValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (LoginByEmailRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginByEmailRequestValidationError) ErrorName

ErrorName returns error name.

func (LoginByEmailRequestValidationError) Field

Field function returns field value.

func (LoginByEmailRequestValidationError) Key

Key function returns key value.

func (LoginByEmailRequestValidationError) Reason

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

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

Cause function returns cause value.

func (LoginByEmailRequest_AuthValidationError) Error

Error satisfies the builtin error interface

func (LoginByEmailRequest_AuthValidationError) ErrorName

ErrorName returns error name.

func (LoginByEmailRequest_AuthValidationError) Field

Field function returns field value.

func (LoginByEmailRequest_AuthValidationError) Key

Key function returns key value.

func (LoginByEmailRequest_AuthValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (LoginByPasswordRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginByPasswordRequestValidationError) ErrorName

ErrorName returns error name.

func (LoginByPasswordRequestValidationError) Field

Field function returns field value.

func (LoginByPasswordRequestValidationError) Key

Key function returns key value.

func (LoginByPasswordRequestValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (LoginByPasswordRequest_AuthMultiError) Error

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

Cause function returns cause value.

func (LoginByPasswordRequest_AuthValidationError) Error

Error satisfies the builtin error interface

func (LoginByPasswordRequest_AuthValidationError) ErrorName

ErrorName returns error name.

func (LoginByPasswordRequest_AuthValidationError) Field

Field function returns field value.

func (LoginByPasswordRequest_AuthValidationError) Key

Key function returns key value.

func (LoginByPasswordRequest_AuthValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (LoginBySmsRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginBySmsRequestValidationError) ErrorName

ErrorName returns error name.

func (LoginBySmsRequestValidationError) Field

Field function returns field value.

func (LoginBySmsRequestValidationError) Key

Key function returns key value.

func (LoginBySmsRequestValidationError) Reason

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

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

Cause function returns cause value.

func (LoginBySmsRequest_AuthValidationError) Error

Error satisfies the builtin error interface

func (LoginBySmsRequest_AuthValidationError) ErrorName

ErrorName returns error name.

func (LoginBySmsRequest_AuthValidationError) Field

Field function returns field value.

func (LoginBySmsRequest_AuthValidationError) Key

Key function returns key value.

func (LoginBySmsRequest_AuthValidationError) Reason

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

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

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

Cause function returns cause value.

func (LogoutRequestValidationError) Error

Error satisfies the builtin error interface

func (LogoutRequestValidationError) ErrorName

func (e LogoutRequestValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRequestValidationError) Field

Field function returns field value.

func (LogoutRequestValidationError) Key

Key function returns key value.

func (LogoutRequestValidationError) Reason

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

Cause function returns cause value.

func (LogoutResponseValidationError) Error

Error satisfies the builtin error interface

func (LogoutResponseValidationError) ErrorName

func (e LogoutResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutResponseValidationError) Field

Field function returns field value.

func (LogoutResponseValidationError) Key

Key function returns key value.

func (LogoutResponseValidationError) Reason

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

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

Cause function returns cause value.

func (RegisterRequestValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequestValidationError) ErrorName

func (e RegisterRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRequestValidationError) Field

Field function returns field value.

func (RegisterRequestValidationError) Key

Key function returns key value.

func (RegisterRequestValidationError) Reason

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

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

Cause function returns cause value.

func (RegisterRequest_AuthValidationError) Error

Error satisfies the builtin error interface

func (RegisterRequest_AuthValidationError) ErrorName

ErrorName returns error name.

func (RegisterRequest_AuthValidationError) Field

Field function returns field value.

func (RegisterRequest_AuthValidationError) Key

Key function returns key value.

func (RegisterRequest_AuthValidationError) Reason

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

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

Cause function returns cause value.

func (RegisterResponseValidationError) Error

Error satisfies the builtin error interface

func (RegisterResponseValidationError) ErrorName

ErrorName returns error name.

func (RegisterResponseValidationError) Field

Field function returns field value.

func (RegisterResponseValidationError) Key

Key function returns key value.

func (RegisterResponseValidationError) Reason

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

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetCreatedAt

func (x *Role) GetCreatedAt() *timestamppb.Timestamp

func (*Role) GetDataScope

func (x *Role) GetDataScope() int32

func (*Role) GetDefaultRouter

func (x *Role) GetDefaultRouter() string

func (*Role) GetDeptCheckStrictly

func (x *Role) GetDeptCheckStrictly() int32

func (*Role) GetId

func (x *Role) GetId() uint64

func (*Role) GetMenuCheckStrictly

func (x *Role) GetMenuCheckStrictly() int32

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetRemark

func (x *Role) GetRemark() string

func (*Role) GetSort

func (x *Role) GetSort() int32

func (*Role) GetState

func (x *Role) GetState() int32

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

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

func (*Role) Validate

func (m *Role) Validate() error

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

func (m *Role) ValidateAll() error

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.

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

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

func (UnimplementedAuthServiceServer) LoginByEmail

func (UnimplementedAuthServiceServer) LoginByPassword

func (UnimplementedAuthServiceServer) LoginBySms

func (UnimplementedAuthServiceServer) Logout

func (UnimplementedAuthServiceServer) Register

type UnimplementedRoleServiceServer

type UnimplementedRoleServiceServer struct {
}

UnimplementedRoleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRoleServiceServer) CreateRole

func (UnimplementedRoleServiceServer) DeleteRole

func (UnimplementedRoleServiceServer) GetRole

func (UnimplementedRoleServiceServer) ListRole

func (UnimplementedRoleServiceServer) UpdateRole

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) DeleteUser

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) ListUser

func (UnimplementedUserServiceServer) UpdateUser

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

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

Cause function returns cause value.

func (UpdateRoleRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleRequestValidationError) Field

Field function returns field value.

func (UpdateRoleRequestValidationError) Key

Key function returns key value.

func (UpdateRoleRequestValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateRoleResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateRoleResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateRoleResponseValidationError) Field

Field function returns field value.

func (UpdateRoleResponseValidationError) Key

Key function returns key value.

func (UpdateRoleResponseValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateUserRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserRequestValidationError) Field

Field function returns field value.

func (UpdateUserRequestValidationError) Key

Key function returns key value.

func (UpdateUserRequestValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateUserResponseValidationError) Error

Error satisfies the builtin error interface

func (UpdateUserResponseValidationError) ErrorName

ErrorName returns error name.

func (UpdateUserResponseValidationError) Field

Field function returns field value.

func (UpdateUserResponseValidationError) Key

Key function returns key value.

func (UpdateUserResponseValidationError) Reason

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAvatar

func (x *User) GetAvatar() string

func (*User) GetBirthday

func (x *User) GetBirthday() string

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetGender

func (x *User) GetGender() int32

func (*User) GetId

func (x *User) GetId() uint64

func (*User) GetName

func (x *User) GetName() string

func (*User) GetNickName

func (x *User) GetNickName() string

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetRealName

func (x *User) GetRealName() string

func (*User) GetState

func (x *User) GetState() int32

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

func (x *User) Reset()

func (*User) String

func (x *User) String() string

func (*User) Validate

func (m *User) Validate() error

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

func (m *User) ValidateAll() error

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.

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

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.

Jump to

Keyboard shortcuts

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