Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorLoginFailed(format string, args ...interface{}) *errors.Error
- func ErrorRegisterFailed(format string, args ...interface{}) *errors.Error
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func IsLoginFailed(err error) bool
- func IsRegisterFailed(err error) bool
- func IsUnknownError(err error) bool
- func RegisterAccountServiceHTTPServer(s *http.Server, srv AccountServiceHTTPServer)
- func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
- func RegisterAccountUserServiceServer(s grpc.ServiceRegistrar, srv AccountUserServiceServer)
- type AccountServiceClient
- type AccountServiceErrorReason
- func (AccountServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x AccountServiceErrorReason) Enum() *AccountServiceErrorReason
- func (AccountServiceErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x AccountServiceErrorReason) Number() protoreflect.EnumNumber
- func (x AccountServiceErrorReason) String() string
- func (AccountServiceErrorReason) Type() protoreflect.EnumType
- type AccountServiceHTTPClient
- type AccountServiceHTTPClientImpl
- type AccountServiceHTTPServer
- type AccountServiceServer
- type AccountUser
- func (*AccountUser) Descriptor() ([]byte, []int)deprecated
- func (x *AccountUser) GetEmail() string
- func (x *AccountUser) GetId() uint32
- func (x *AccountUser) GetPassword() string
- func (x *AccountUser) GetPhone() string
- func (x *AccountUser) GetStatus() string
- func (x *AccountUser) GetUsername() string
- func (*AccountUser) ProtoMessage()
- func (x *AccountUser) ProtoReflect() protoreflect.Message
- func (x *AccountUser) Reset()
- func (x *AccountUser) String() string
- func (m *AccountUser) Validate() error
- func (m *AccountUser) ValidateAll() error
- type AccountUserMultiError
- type AccountUserServiceClient
- type AccountUserServiceServer
- type AccountUserValidationError
- func (e AccountUserValidationError) Cause() error
- func (e AccountUserValidationError) Error() string
- func (e AccountUserValidationError) ErrorName() string
- func (e AccountUserValidationError) Field() string
- func (e AccountUserValidationError) Key() bool
- func (e AccountUserValidationError) Reason() string
- type CreateAccountUserReq
- func (*CreateAccountUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountUserReq) GetAccountUser() *AccountUser
- func (*CreateAccountUserReq) ProtoMessage()
- func (x *CreateAccountUserReq) ProtoReflect() protoreflect.Message
- func (x *CreateAccountUserReq) Reset()
- func (x *CreateAccountUserReq) String() string
- func (m *CreateAccountUserReq) Validate() error
- func (m *CreateAccountUserReq) ValidateAll() error
- type CreateAccountUserReqMultiError
- type CreateAccountUserReqValidationError
- func (e CreateAccountUserReqValidationError) Cause() error
- func (e CreateAccountUserReqValidationError) Error() string
- func (e CreateAccountUserReqValidationError) ErrorName() string
- func (e CreateAccountUserReqValidationError) Field() string
- func (e CreateAccountUserReqValidationError) Key() bool
- func (e CreateAccountUserReqValidationError) Reason() string
- type DeleteAccountUserReq
- func (*DeleteAccountUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAccountUserReq) GetId() uint32
- func (*DeleteAccountUserReq) ProtoMessage()
- func (x *DeleteAccountUserReq) ProtoReflect() protoreflect.Message
- func (x *DeleteAccountUserReq) Reset()
- func (x *DeleteAccountUserReq) String() string
- func (m *DeleteAccountUserReq) Validate() error
- func (m *DeleteAccountUserReq) ValidateAll() error
- type DeleteAccountUserReqMultiError
- type DeleteAccountUserReqValidationError
- func (e DeleteAccountUserReqValidationError) Cause() error
- func (e DeleteAccountUserReqValidationError) Error() string
- func (e DeleteAccountUserReqValidationError) ErrorName() string
- func (e DeleteAccountUserReqValidationError) Field() string
- func (e DeleteAccountUserReqValidationError) Key() bool
- func (e DeleteAccountUserReqValidationError) Reason() string
- type GetAccountUserReq
- func (*GetAccountUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountUserReq) GetFieldMask() *fieldmaskpb.FieldMask
- func (x *GetAccountUserReq) GetId() uint32
- func (*GetAccountUserReq) ProtoMessage()
- func (x *GetAccountUserReq) ProtoReflect() protoreflect.Message
- func (x *GetAccountUserReq) Reset()
- func (x *GetAccountUserReq) String() string
- func (m *GetAccountUserReq) Validate() error
- func (m *GetAccountUserReq) ValidateAll() error
- type GetAccountUserReqMultiError
- type GetAccountUserReqValidationError
- func (e GetAccountUserReqValidationError) Cause() error
- func (e GetAccountUserReqValidationError) Error() string
- func (e GetAccountUserReqValidationError) ErrorName() string
- func (e GetAccountUserReqValidationError) Field() string
- func (e GetAccountUserReqValidationError) Key() bool
- func (e GetAccountUserReqValidationError) Reason() string
- type ListAccountUserReq
- func (*ListAccountUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountUserReq) GetOrderBy() map[string]string
- func (x *ListAccountUserReq) GetQuery() map[string]string
- func (*ListAccountUserReq) ProtoMessage()
- func (x *ListAccountUserReq) ProtoReflect() protoreflect.Message
- func (x *ListAccountUserReq) Reset()
- func (x *ListAccountUserReq) String() string
- func (m *ListAccountUserReq) Validate() error
- func (m *ListAccountUserReq) ValidateAll() error
- type ListAccountUserReqMultiError
- type ListAccountUserReqValidationError
- func (e ListAccountUserReqValidationError) Cause() error
- func (e ListAccountUserReqValidationError) Error() string
- func (e ListAccountUserReqValidationError) ErrorName() string
- func (e ListAccountUserReqValidationError) Field() string
- func (e ListAccountUserReqValidationError) Key() bool
- func (e ListAccountUserReqValidationError) Reason() string
- type ListAccountUserResp
- func (*ListAccountUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountUserResp) GetList() []*AccountUser
- func (*ListAccountUserResp) ProtoMessage()
- func (x *ListAccountUserResp) ProtoReflect() protoreflect.Message
- func (x *ListAccountUserResp) Reset()
- func (x *ListAccountUserResp) String() string
- func (m *ListAccountUserResp) Validate() error
- func (m *ListAccountUserResp) ValidateAll() error
- type ListAccountUserRespMultiError
- type ListAccountUserRespValidationError
- func (e ListAccountUserRespValidationError) Cause() error
- func (e ListAccountUserRespValidationError) Error() string
- func (e ListAccountUserRespValidationError) ErrorName() string
- func (e ListAccountUserRespValidationError) Field() string
- func (e ListAccountUserRespValidationError) Key() bool
- func (e ListAccountUserRespValidationError) Reason() string
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReq) GetCode() string
- func (x *LoginReq) GetEmail() string
- func (x *LoginReq) GetPassword() string
- func (x *LoginReq) GetPhone() string
- func (x *LoginReq) GetType() string
- func (x *LoginReq) GetUsername() string
- func (*LoginReq) ProtoMessage()
- func (x *LoginReq) ProtoReflect() protoreflect.Message
- func (x *LoginReq) Reset()
- func (x *LoginReq) String() string
- func (m *LoginReq) Validate() error
- func (m *LoginReq) ValidateAll() error
- type LoginReqMultiError
- type LoginReqValidationError
- type LoginResp
- func (*LoginResp) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResp) GetEmail() string
- func (x *LoginResp) GetId() int64
- func (x *LoginResp) GetPhone() string
- func (x *LoginResp) GetUsername() string
- func (*LoginResp) ProtoMessage()
- func (x *LoginResp) ProtoReflect() protoreflect.Message
- func (x *LoginResp) Reset()
- func (x *LoginResp) String() string
- func (m *LoginResp) Validate() error
- func (m *LoginResp) ValidateAll() error
- type LoginRespMultiError
- type LoginRespValidationError
- type PageListAccountUserReq
- func (*PageListAccountUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *PageListAccountUserReq) GetOrderBy() map[string]string
- func (x *PageListAccountUserReq) GetPageNum() int32
- func (x *PageListAccountUserReq) GetPageSize() int32
- func (x *PageListAccountUserReq) GetQuery() map[string]string
- func (*PageListAccountUserReq) ProtoMessage()
- func (x *PageListAccountUserReq) ProtoReflect() protoreflect.Message
- func (x *PageListAccountUserReq) Reset()
- func (x *PageListAccountUserReq) String() string
- func (m *PageListAccountUserReq) Validate() error
- func (m *PageListAccountUserReq) ValidateAll() error
- type PageListAccountUserReqMultiError
- type PageListAccountUserReqValidationError
- func (e PageListAccountUserReqValidationError) Cause() error
- func (e PageListAccountUserReqValidationError) Error() string
- func (e PageListAccountUserReqValidationError) ErrorName() string
- func (e PageListAccountUserReqValidationError) Field() string
- func (e PageListAccountUserReqValidationError) Key() bool
- func (e PageListAccountUserReqValidationError) Reason() string
- type PageListAccountUserResp
- func (*PageListAccountUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *PageListAccountUserResp) GetList() []*AccountUser
- func (x *PageListAccountUserResp) GetPageNum() int32
- func (x *PageListAccountUserResp) GetPageSize() int32
- func (x *PageListAccountUserResp) GetTotal() int32
- func (*PageListAccountUserResp) ProtoMessage()
- func (x *PageListAccountUserResp) ProtoReflect() protoreflect.Message
- func (x *PageListAccountUserResp) Reset()
- func (x *PageListAccountUserResp) String() string
- func (m *PageListAccountUserResp) Validate() error
- func (m *PageListAccountUserResp) ValidateAll() error
- type PageListAccountUserRespMultiError
- type PageListAccountUserRespValidationError
- func (e PageListAccountUserRespValidationError) Cause() error
- func (e PageListAccountUserRespValidationError) Error() string
- func (e PageListAccountUserRespValidationError) ErrorName() string
- func (e PageListAccountUserRespValidationError) Field() string
- func (e PageListAccountUserRespValidationError) Key() bool
- func (e PageListAccountUserRespValidationError) Reason() string
- type RegisterReq
- func (*RegisterReq) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterReq) GetEmail() string
- func (x *RegisterReq) GetPassword() string
- func (x *RegisterReq) GetPhone() string
- func (x *RegisterReq) GetUsername() string
- func (*RegisterReq) ProtoMessage()
- func (x *RegisterReq) ProtoReflect() protoreflect.Message
- func (x *RegisterReq) Reset()
- func (x *RegisterReq) String() string
- func (m *RegisterReq) Validate() error
- func (m *RegisterReq) ValidateAll() error
- type RegisterReqMultiError
- type RegisterReqValidationError
- func (e RegisterReqValidationError) Cause() error
- func (e RegisterReqValidationError) Error() string
- func (e RegisterReqValidationError) ErrorName() string
- func (e RegisterReqValidationError) Field() string
- func (e RegisterReqValidationError) Key() bool
- func (e RegisterReqValidationError) Reason() string
- type RegisterResp
- func (*RegisterResp) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResp) GetId() int64
- func (*RegisterResp) ProtoMessage()
- func (x *RegisterResp) ProtoReflect() protoreflect.Message
- func (x *RegisterResp) Reset()
- func (x *RegisterResp) String() string
- func (m *RegisterResp) Validate() error
- func (m *RegisterResp) ValidateAll() error
- type RegisterRespMultiError
- type RegisterRespValidationError
- func (e RegisterRespValidationError) Cause() error
- func (e RegisterRespValidationError) Error() string
- func (e RegisterRespValidationError) ErrorName() string
- func (e RegisterRespValidationError) Field() string
- func (e RegisterRespValidationError) Key() bool
- func (e RegisterRespValidationError) Reason() string
- type UnimplementedAccountServiceServer
- type UnimplementedAccountUserServiceServer
- func (UnimplementedAccountUserServiceServer) CreateAccountUser(context.Context, *CreateAccountUserReq) (*AccountUser, error)
- func (UnimplementedAccountUserServiceServer) DeleteAccountUser(context.Context, *DeleteAccountUserReq) (*emptypb.Empty, error)
- func (UnimplementedAccountUserServiceServer) GetAccountUser(context.Context, *GetAccountUserReq) (*AccountUser, error)
- func (UnimplementedAccountUserServiceServer) ListAccountUser(context.Context, *ListAccountUserReq) (*ListAccountUserResp, error)
- func (UnimplementedAccountUserServiceServer) PageListAccountUser(context.Context, *PageListAccountUserReq) (*PageListAccountUserResp, error)
- func (UnimplementedAccountUserServiceServer) UpdateAccountUser(context.Context, *UpdateAccountUserReq) (*AccountUser, error)
- type UnsafeAccountServiceServer
- type UnsafeAccountUserServiceServer
- type UpdateAccountUserReq
- func (*UpdateAccountUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAccountUserReq) GetAccountUser() *AccountUser
- func (x *UpdateAccountUserReq) GetId() uint32
- func (*UpdateAccountUserReq) ProtoMessage()
- func (x *UpdateAccountUserReq) ProtoReflect() protoreflect.Message
- func (x *UpdateAccountUserReq) Reset()
- func (x *UpdateAccountUserReq) String() string
- func (m *UpdateAccountUserReq) Validate() error
- func (m *UpdateAccountUserReq) ValidateAll() error
- type UpdateAccountUserReqMultiError
- type UpdateAccountUserReqValidationError
- func (e UpdateAccountUserReqValidationError) Cause() error
- func (e UpdateAccountUserReqValidationError) Error() string
- func (e UpdateAccountUserReqValidationError) ErrorName() string
- func (e UpdateAccountUserReqValidationError) Field() string
- func (e UpdateAccountUserReqValidationError) Key() bool
- func (e UpdateAccountUserReqValidationError) Reason() string
Constants ¶
const OperationAccountServiceLogin = "/account.service.v1.AccountService/Login"
const OperationAccountServiceRegister = "/account.service.v1.AccountService/Register"
Variables ¶
var ( AccountServiceErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", 1: "LOGIN_FAILED", 2: "REGISTER_FAILED", } AccountServiceErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, "LOGIN_FAILED": 1, "REGISTER_FAILED": 2, } )
Enum value maps for AccountServiceErrorReason.
var AccountService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.service.v1.AccountService", HandlerType: (*AccountServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _AccountService_Register_Handler, }, { MethodName: "Login", Handler: _AccountService_Login_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account/service/v1/account.proto", }
AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var AccountUserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.service.v1.AccountUserService", HandlerType: (*AccountUserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateAccountUser", Handler: _AccountUserService_CreateAccountUser_Handler, }, { MethodName: "UpdateAccountUser", Handler: _AccountUserService_UpdateAccountUser_Handler, }, { MethodName: "DeleteAccountUser", Handler: _AccountUserService_DeleteAccountUser_Handler, }, { MethodName: "GetAccountUser", Handler: _AccountUserService_GetAccountUser_Handler, }, { MethodName: "ListAccountUser", Handler: _AccountUserService_ListAccountUser_Handler, }, { MethodName: "PageListAccountUser", Handler: _AccountUserService_PageListAccountUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account/service/v1/account_user.proto", }
AccountUserService_ServiceDesc is the grpc.ServiceDesc for AccountUserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_account_service_v1_account_error_proto protoreflect.FileDescriptor
var File_account_service_v1_account_proto protoreflect.FileDescriptor
var File_account_service_v1_account_user_proto protoreflect.FileDescriptor
Functions ¶
func ErrorLoginFailed ¶
func ErrorRegisterFailed ¶
func ErrorUnknownError ¶
func IsLoginFailed ¶
func IsRegisterFailed ¶
func IsUnknownError ¶
func RegisterAccountServiceHTTPServer ¶
func RegisterAccountServiceHTTPServer(s *http.Server, srv AccountServiceHTTPServer)
func RegisterAccountServiceServer ¶
func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer)
func RegisterAccountUserServiceServer ¶
func RegisterAccountUserServiceServer(s grpc.ServiceRegistrar, srv AccountUserServiceServer)
Types ¶
type AccountServiceClient ¶
type AccountServiceClient interface { Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*RegisterResp, error) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) }
AccountServiceClient is the client API for AccountService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountServiceClient ¶
func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient
type AccountServiceErrorReason ¶
type AccountServiceErrorReason int32
const ( AccountServiceErrorReason_UNKNOWN_ERROR AccountServiceErrorReason = 0 AccountServiceErrorReason_LOGIN_FAILED AccountServiceErrorReason = 1 AccountServiceErrorReason_REGISTER_FAILED AccountServiceErrorReason = 2 )
func (AccountServiceErrorReason) Descriptor ¶
func (AccountServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
func (AccountServiceErrorReason) Enum ¶
func (x AccountServiceErrorReason) Enum() *AccountServiceErrorReason
func (AccountServiceErrorReason) EnumDescriptor
deprecated
func (AccountServiceErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use AccountServiceErrorReason.Descriptor instead.
func (AccountServiceErrorReason) Number ¶
func (x AccountServiceErrorReason) Number() protoreflect.EnumNumber
func (AccountServiceErrorReason) String ¶
func (x AccountServiceErrorReason) String() string
func (AccountServiceErrorReason) Type ¶
func (AccountServiceErrorReason) Type() protoreflect.EnumType
type AccountServiceHTTPClient ¶
type AccountServiceHTTPClient interface { Login(ctx context.Context, req *LoginReq, opts ...http.CallOption) (rsp *LoginResp, err error) Register(ctx context.Context, req *RegisterReq, opts ...http.CallOption) (rsp *RegisterResp, err error) }
func NewAccountServiceHTTPClient ¶
func NewAccountServiceHTTPClient(client *http.Client) AccountServiceHTTPClient
type AccountServiceHTTPClientImpl ¶
type AccountServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*AccountServiceHTTPClientImpl) Login ¶
func (c *AccountServiceHTTPClientImpl) Login(ctx context.Context, in *LoginReq, opts ...http.CallOption) (*LoginResp, error)
func (*AccountServiceHTTPClientImpl) Register ¶
func (c *AccountServiceHTTPClientImpl) Register(ctx context.Context, in *RegisterReq, opts ...http.CallOption) (*RegisterResp, error)
type AccountServiceHTTPServer ¶
type AccountServiceHTTPServer interface { Login(context.Context, *LoginReq) (*LoginResp, error) Register(context.Context, *RegisterReq) (*RegisterResp, error) }
type AccountServiceServer ¶
type AccountServiceServer interface { Register(context.Context, *RegisterReq) (*RegisterResp, error) Login(context.Context, *LoginReq) (*LoginResp, error) // contains filtered or unexported methods }
AccountServiceServer is the server API for AccountService service. All implementations must embed UnimplementedAccountServiceServer for forward compatibility
type AccountUser ¶
type AccountUser struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username *string `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"` Password *string `protobuf:"bytes,3,opt,name=password,proto3,oneof" json:"password,omitempty"` Email *string `protobuf:"bytes,4,opt,name=email,proto3,oneof" json:"email,omitempty"` Phone *string `protobuf:"bytes,5,opt,name=phone,proto3,oneof" json:"phone,omitempty"` Status *string `protobuf:"bytes,6,opt,name=status,proto3,oneof" json:"status,omitempty"` // contains filtered or unexported fields }
func (*AccountUser) Descriptor
deprecated
func (*AccountUser) Descriptor() ([]byte, []int)
Deprecated: Use AccountUser.ProtoReflect.Descriptor instead.
func (*AccountUser) GetEmail ¶
func (x *AccountUser) GetEmail() string
func (*AccountUser) GetId ¶
func (x *AccountUser) GetId() uint32
func (*AccountUser) GetPassword ¶
func (x *AccountUser) GetPassword() string
func (*AccountUser) GetPhone ¶
func (x *AccountUser) GetPhone() string
func (*AccountUser) GetStatus ¶
func (x *AccountUser) GetStatus() string
func (*AccountUser) GetUsername ¶
func (x *AccountUser) GetUsername() string
func (*AccountUser) ProtoMessage ¶
func (*AccountUser) ProtoMessage()
func (*AccountUser) ProtoReflect ¶
func (x *AccountUser) ProtoReflect() protoreflect.Message
func (*AccountUser) Reset ¶
func (x *AccountUser) Reset()
func (*AccountUser) String ¶
func (x *AccountUser) String() string
func (*AccountUser) Validate ¶
func (m *AccountUser) Validate() error
Validate checks the field values on AccountUser 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 (*AccountUser) ValidateAll ¶
func (m *AccountUser) ValidateAll() error
ValidateAll checks the field values on AccountUser 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 AccountUserMultiError, or nil if none found.
type AccountUserMultiError ¶
type AccountUserMultiError []error
AccountUserMultiError is an error wrapping multiple validation errors returned by AccountUser.ValidateAll() if the designated constraints aren't met.
func (AccountUserMultiError) AllErrors ¶
func (m AccountUserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AccountUserMultiError) Error ¶
func (m AccountUserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AccountUserServiceClient ¶
type AccountUserServiceClient interface { CreateAccountUser(ctx context.Context, in *CreateAccountUserReq, opts ...grpc.CallOption) (*AccountUser, error) UpdateAccountUser(ctx context.Context, in *UpdateAccountUserReq, opts ...grpc.CallOption) (*AccountUser, error) DeleteAccountUser(ctx context.Context, in *DeleteAccountUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) GetAccountUser(ctx context.Context, in *GetAccountUserReq, opts ...grpc.CallOption) (*AccountUser, error) ListAccountUser(ctx context.Context, in *ListAccountUserReq, opts ...grpc.CallOption) (*ListAccountUserResp, error) PageListAccountUser(ctx context.Context, in *PageListAccountUserReq, opts ...grpc.CallOption) (*PageListAccountUserResp, error) }
AccountUserServiceClient is the client API for AccountUserService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAccountUserServiceClient ¶
func NewAccountUserServiceClient(cc grpc.ClientConnInterface) AccountUserServiceClient
type AccountUserServiceServer ¶
type AccountUserServiceServer interface { CreateAccountUser(context.Context, *CreateAccountUserReq) (*AccountUser, error) UpdateAccountUser(context.Context, *UpdateAccountUserReq) (*AccountUser, error) DeleteAccountUser(context.Context, *DeleteAccountUserReq) (*emptypb.Empty, error) GetAccountUser(context.Context, *GetAccountUserReq) (*AccountUser, error) ListAccountUser(context.Context, *ListAccountUserReq) (*ListAccountUserResp, error) PageListAccountUser(context.Context, *PageListAccountUserReq) (*PageListAccountUserResp, error) // contains filtered or unexported methods }
AccountUserServiceServer is the server API for AccountUserService service. All implementations must embed UnimplementedAccountUserServiceServer for forward compatibility
type AccountUserValidationError ¶
type AccountUserValidationError struct {
// contains filtered or unexported fields
}
AccountUserValidationError is the validation error returned by AccountUser.Validate if the designated constraints aren't met.
func (AccountUserValidationError) Cause ¶
func (e AccountUserValidationError) Cause() error
Cause function returns cause value.
func (AccountUserValidationError) Error ¶
func (e AccountUserValidationError) Error() string
Error satisfies the builtin error interface
func (AccountUserValidationError) ErrorName ¶
func (e AccountUserValidationError) ErrorName() string
ErrorName returns error name.
func (AccountUserValidationError) Field ¶
func (e AccountUserValidationError) Field() string
Field function returns field value.
func (AccountUserValidationError) Key ¶
func (e AccountUserValidationError) Key() bool
Key function returns key value.
func (AccountUserValidationError) Reason ¶
func (e AccountUserValidationError) Reason() string
Reason function returns reason value.
type CreateAccountUserReq ¶
type CreateAccountUserReq struct { AccountUser *AccountUser `protobuf:"bytes,1,opt,name=accountUser,proto3" json:"accountUser,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountUserReq) Descriptor
deprecated
func (*CreateAccountUserReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountUserReq.ProtoReflect.Descriptor instead.
func (*CreateAccountUserReq) GetAccountUser ¶
func (x *CreateAccountUserReq) GetAccountUser() *AccountUser
func (*CreateAccountUserReq) ProtoMessage ¶
func (*CreateAccountUserReq) ProtoMessage()
func (*CreateAccountUserReq) ProtoReflect ¶
func (x *CreateAccountUserReq) ProtoReflect() protoreflect.Message
func (*CreateAccountUserReq) Reset ¶
func (x *CreateAccountUserReq) Reset()
func (*CreateAccountUserReq) String ¶
func (x *CreateAccountUserReq) String() string
func (*CreateAccountUserReq) Validate ¶
func (m *CreateAccountUserReq) Validate() error
Validate checks the field values on CreateAccountUserReq 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 (*CreateAccountUserReq) ValidateAll ¶
func (m *CreateAccountUserReq) ValidateAll() error
ValidateAll checks the field values on CreateAccountUserReq 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 CreateAccountUserReqMultiError, or nil if none found.
type CreateAccountUserReqMultiError ¶
type CreateAccountUserReqMultiError []error
CreateAccountUserReqMultiError is an error wrapping multiple validation errors returned by CreateAccountUserReq.ValidateAll() if the designated constraints aren't met.
func (CreateAccountUserReqMultiError) AllErrors ¶
func (m CreateAccountUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAccountUserReqMultiError) Error ¶
func (m CreateAccountUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAccountUserReqValidationError ¶
type CreateAccountUserReqValidationError struct {
// contains filtered or unexported fields
}
CreateAccountUserReqValidationError is the validation error returned by CreateAccountUserReq.Validate if the designated constraints aren't met.
func (CreateAccountUserReqValidationError) Cause ¶
func (e CreateAccountUserReqValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountUserReqValidationError) Error ¶
func (e CreateAccountUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountUserReqValidationError) ErrorName ¶
func (e CreateAccountUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountUserReqValidationError) Field ¶
func (e CreateAccountUserReqValidationError) Field() string
Field function returns field value.
func (CreateAccountUserReqValidationError) Key ¶
func (e CreateAccountUserReqValidationError) Key() bool
Key function returns key value.
func (CreateAccountUserReqValidationError) Reason ¶
func (e CreateAccountUserReqValidationError) Reason() string
Reason function returns reason value.
type DeleteAccountUserReq ¶
type DeleteAccountUserReq struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteAccountUserReq) Descriptor
deprecated
func (*DeleteAccountUserReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAccountUserReq.ProtoReflect.Descriptor instead.
func (*DeleteAccountUserReq) GetId ¶
func (x *DeleteAccountUserReq) GetId() uint32
func (*DeleteAccountUserReq) ProtoMessage ¶
func (*DeleteAccountUserReq) ProtoMessage()
func (*DeleteAccountUserReq) ProtoReflect ¶
func (x *DeleteAccountUserReq) ProtoReflect() protoreflect.Message
func (*DeleteAccountUserReq) Reset ¶
func (x *DeleteAccountUserReq) Reset()
func (*DeleteAccountUserReq) String ¶
func (x *DeleteAccountUserReq) String() string
func (*DeleteAccountUserReq) Validate ¶
func (m *DeleteAccountUserReq) Validate() error
Validate checks the field values on DeleteAccountUserReq 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 (*DeleteAccountUserReq) ValidateAll ¶
func (m *DeleteAccountUserReq) ValidateAll() error
ValidateAll checks the field values on DeleteAccountUserReq 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 DeleteAccountUserReqMultiError, or nil if none found.
type DeleteAccountUserReqMultiError ¶
type DeleteAccountUserReqMultiError []error
DeleteAccountUserReqMultiError is an error wrapping multiple validation errors returned by DeleteAccountUserReq.ValidateAll() if the designated constraints aren't met.
func (DeleteAccountUserReqMultiError) AllErrors ¶
func (m DeleteAccountUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteAccountUserReqMultiError) Error ¶
func (m DeleteAccountUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteAccountUserReqValidationError ¶
type DeleteAccountUserReqValidationError struct {
// contains filtered or unexported fields
}
DeleteAccountUserReqValidationError is the validation error returned by DeleteAccountUserReq.Validate if the designated constraints aren't met.
func (DeleteAccountUserReqValidationError) Cause ¶
func (e DeleteAccountUserReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteAccountUserReqValidationError) Error ¶
func (e DeleteAccountUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteAccountUserReqValidationError) ErrorName ¶
func (e DeleteAccountUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteAccountUserReqValidationError) Field ¶
func (e DeleteAccountUserReqValidationError) Field() string
Field function returns field value.
func (DeleteAccountUserReqValidationError) Key ¶
func (e DeleteAccountUserReqValidationError) Key() bool
Key function returns key value.
func (DeleteAccountUserReqValidationError) Reason ¶
func (e DeleteAccountUserReqValidationError) Reason() string
Reason function returns reason value.
type GetAccountUserReq ¶
type GetAccountUserReq struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // contains filtered or unexported fields }
func (*GetAccountUserReq) Descriptor
deprecated
func (*GetAccountUserReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountUserReq.ProtoReflect.Descriptor instead.
func (*GetAccountUserReq) GetFieldMask ¶
func (x *GetAccountUserReq) GetFieldMask() *fieldmaskpb.FieldMask
func (*GetAccountUserReq) GetId ¶
func (x *GetAccountUserReq) GetId() uint32
func (*GetAccountUserReq) ProtoMessage ¶
func (*GetAccountUserReq) ProtoMessage()
func (*GetAccountUserReq) ProtoReflect ¶
func (x *GetAccountUserReq) ProtoReflect() protoreflect.Message
func (*GetAccountUserReq) Reset ¶
func (x *GetAccountUserReq) Reset()
func (*GetAccountUserReq) String ¶
func (x *GetAccountUserReq) String() string
func (*GetAccountUserReq) Validate ¶
func (m *GetAccountUserReq) Validate() error
Validate checks the field values on GetAccountUserReq 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 (*GetAccountUserReq) ValidateAll ¶
func (m *GetAccountUserReq) ValidateAll() error
ValidateAll checks the field values on GetAccountUserReq 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 GetAccountUserReqMultiError, or nil if none found.
type GetAccountUserReqMultiError ¶
type GetAccountUserReqMultiError []error
GetAccountUserReqMultiError is an error wrapping multiple validation errors returned by GetAccountUserReq.ValidateAll() if the designated constraints aren't met.
func (GetAccountUserReqMultiError) AllErrors ¶
func (m GetAccountUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAccountUserReqMultiError) Error ¶
func (m GetAccountUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAccountUserReqValidationError ¶
type GetAccountUserReqValidationError struct {
// contains filtered or unexported fields
}
GetAccountUserReqValidationError is the validation error returned by GetAccountUserReq.Validate if the designated constraints aren't met.
func (GetAccountUserReqValidationError) Cause ¶
func (e GetAccountUserReqValidationError) Cause() error
Cause function returns cause value.
func (GetAccountUserReqValidationError) Error ¶
func (e GetAccountUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountUserReqValidationError) ErrorName ¶
func (e GetAccountUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountUserReqValidationError) Field ¶
func (e GetAccountUserReqValidationError) Field() string
Field function returns field value.
func (GetAccountUserReqValidationError) Key ¶
func (e GetAccountUserReqValidationError) Key() bool
Key function returns key value.
func (GetAccountUserReqValidationError) Reason ¶
func (e GetAccountUserReqValidationError) Reason() string
Reason function returns reason value.
type ListAccountUserReq ¶
type ListAccountUserReq struct { Query map[string]string `` /* 151-byte string literal not displayed */ OrderBy map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ListAccountUserReq) Descriptor
deprecated
func (*ListAccountUserReq) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountUserReq.ProtoReflect.Descriptor instead.
func (*ListAccountUserReq) GetOrderBy ¶
func (x *ListAccountUserReq) GetOrderBy() map[string]string
func (*ListAccountUserReq) GetQuery ¶
func (x *ListAccountUserReq) GetQuery() map[string]string
func (*ListAccountUserReq) ProtoMessage ¶
func (*ListAccountUserReq) ProtoMessage()
func (*ListAccountUserReq) ProtoReflect ¶
func (x *ListAccountUserReq) ProtoReflect() protoreflect.Message
func (*ListAccountUserReq) Reset ¶
func (x *ListAccountUserReq) Reset()
func (*ListAccountUserReq) String ¶
func (x *ListAccountUserReq) String() string
func (*ListAccountUserReq) Validate ¶
func (m *ListAccountUserReq) Validate() error
Validate checks the field values on ListAccountUserReq 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 (*ListAccountUserReq) ValidateAll ¶
func (m *ListAccountUserReq) ValidateAll() error
ValidateAll checks the field values on ListAccountUserReq 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 ListAccountUserReqMultiError, or nil if none found.
type ListAccountUserReqMultiError ¶
type ListAccountUserReqMultiError []error
ListAccountUserReqMultiError is an error wrapping multiple validation errors returned by ListAccountUserReq.ValidateAll() if the designated constraints aren't met.
func (ListAccountUserReqMultiError) AllErrors ¶
func (m ListAccountUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAccountUserReqMultiError) Error ¶
func (m ListAccountUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAccountUserReqValidationError ¶
type ListAccountUserReqValidationError struct {
// contains filtered or unexported fields
}
ListAccountUserReqValidationError is the validation error returned by ListAccountUserReq.Validate if the designated constraints aren't met.
func (ListAccountUserReqValidationError) Cause ¶
func (e ListAccountUserReqValidationError) Cause() error
Cause function returns cause value.
func (ListAccountUserReqValidationError) Error ¶
func (e ListAccountUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListAccountUserReqValidationError) ErrorName ¶
func (e ListAccountUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListAccountUserReqValidationError) Field ¶
func (e ListAccountUserReqValidationError) Field() string
Field function returns field value.
func (ListAccountUserReqValidationError) Key ¶
func (e ListAccountUserReqValidationError) Key() bool
Key function returns key value.
func (ListAccountUserReqValidationError) Reason ¶
func (e ListAccountUserReqValidationError) Reason() string
Reason function returns reason value.
type ListAccountUserResp ¶
type ListAccountUserResp struct { List []*AccountUser `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*ListAccountUserResp) Descriptor
deprecated
func (*ListAccountUserResp) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountUserResp.ProtoReflect.Descriptor instead.
func (*ListAccountUserResp) GetList ¶
func (x *ListAccountUserResp) GetList() []*AccountUser
func (*ListAccountUserResp) ProtoMessage ¶
func (*ListAccountUserResp) ProtoMessage()
func (*ListAccountUserResp) ProtoReflect ¶
func (x *ListAccountUserResp) ProtoReflect() protoreflect.Message
func (*ListAccountUserResp) Reset ¶
func (x *ListAccountUserResp) Reset()
func (*ListAccountUserResp) String ¶
func (x *ListAccountUserResp) String() string
func (*ListAccountUserResp) Validate ¶
func (m *ListAccountUserResp) Validate() error
Validate checks the field values on ListAccountUserResp 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 (*ListAccountUserResp) ValidateAll ¶
func (m *ListAccountUserResp) ValidateAll() error
ValidateAll checks the field values on ListAccountUserResp 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 ListAccountUserRespMultiError, or nil if none found.
type ListAccountUserRespMultiError ¶
type ListAccountUserRespMultiError []error
ListAccountUserRespMultiError is an error wrapping multiple validation errors returned by ListAccountUserResp.ValidateAll() if the designated constraints aren't met.
func (ListAccountUserRespMultiError) AllErrors ¶
func (m ListAccountUserRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListAccountUserRespMultiError) Error ¶
func (m ListAccountUserRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListAccountUserRespValidationError ¶
type ListAccountUserRespValidationError struct {
// contains filtered or unexported fields
}
ListAccountUserRespValidationError is the validation error returned by ListAccountUserResp.Validate if the designated constraints aren't met.
func (ListAccountUserRespValidationError) Cause ¶
func (e ListAccountUserRespValidationError) Cause() error
Cause function returns cause value.
func (ListAccountUserRespValidationError) Error ¶
func (e ListAccountUserRespValidationError) Error() string
Error satisfies the builtin error interface
func (ListAccountUserRespValidationError) ErrorName ¶
func (e ListAccountUserRespValidationError) ErrorName() string
ErrorName returns error name.
func (ListAccountUserRespValidationError) Field ¶
func (e ListAccountUserRespValidationError) Field() string
Field function returns field value.
func (ListAccountUserRespValidationError) Key ¶
func (e ListAccountUserRespValidationError) Key() bool
Key function returns key value.
func (ListAccountUserRespValidationError) Reason ¶
func (e ListAccountUserRespValidationError) Reason() string
Reason function returns reason value.
type LoginReq ¶
type LoginReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetPassword ¶
func (*LoginReq) GetUsername ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
func (*LoginReq) Validate ¶
Validate checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginReq) ValidateAll ¶
ValidateAll checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReqMultiError, or nil if none found.
type LoginReqMultiError ¶
type LoginReqMultiError []error
LoginReqMultiError is an error wrapping multiple validation errors returned by LoginReq.ValidateAll() if the designated constraints aren't met.
func (LoginReqMultiError) AllErrors ¶
func (m LoginReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReqMultiError) Error ¶
func (m LoginReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginReqValidationError ¶
type LoginReqValidationError struct {
// contains filtered or unexported fields
}
LoginReqValidationError is the validation error returned by LoginReq.Validate if the designated constraints aren't met.
func (LoginReqValidationError) Cause ¶
func (e LoginReqValidationError) Cause() error
Cause function returns cause value.
func (LoginReqValidationError) Error ¶
func (e LoginReqValidationError) Error() string
Error satisfies the builtin error interface
func (LoginReqValidationError) ErrorName ¶
func (e LoginReqValidationError) ErrorName() string
ErrorName returns error name.
func (LoginReqValidationError) Field ¶
func (e LoginReqValidationError) Field() string
Field function returns field value.
func (LoginReqValidationError) Key ¶
func (e LoginReqValidationError) Key() bool
Key function returns key value.
func (LoginReqValidationError) Reason ¶
func (e LoginReqValidationError) Reason() string
Reason function returns reason value.
type LoginResp ¶
type LoginResp struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*LoginResp) Descriptor
deprecated
func (*LoginResp) GetUsername ¶
func (*LoginResp) ProtoMessage ¶
func (*LoginResp) ProtoMessage()
func (*LoginResp) ProtoReflect ¶
func (x *LoginResp) ProtoReflect() protoreflect.Message
func (*LoginResp) Validate ¶
Validate checks the field values on LoginResp 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 (*LoginResp) ValidateAll ¶
ValidateAll checks the field values on LoginResp 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 LoginRespMultiError, or nil if none found.
type LoginRespMultiError ¶
type LoginRespMultiError []error
LoginRespMultiError is an error wrapping multiple validation errors returned by LoginResp.ValidateAll() if the designated constraints aren't met.
func (LoginRespMultiError) AllErrors ¶
func (m LoginRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRespMultiError) Error ¶
func (m LoginRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRespValidationError ¶
type LoginRespValidationError struct {
// contains filtered or unexported fields
}
LoginRespValidationError is the validation error returned by LoginResp.Validate if the designated constraints aren't met.
func (LoginRespValidationError) Cause ¶
func (e LoginRespValidationError) Cause() error
Cause function returns cause value.
func (LoginRespValidationError) Error ¶
func (e LoginRespValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRespValidationError) ErrorName ¶
func (e LoginRespValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRespValidationError) Field ¶
func (e LoginRespValidationError) Field() string
Field function returns field value.
func (LoginRespValidationError) Key ¶
func (e LoginRespValidationError) Key() bool
Key function returns key value.
func (LoginRespValidationError) Reason ¶
func (e LoginRespValidationError) Reason() string
Reason function returns reason value.
type PageListAccountUserReq ¶
type PageListAccountUserReq struct { PageNum int32 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Query map[string]string `` /* 151-byte string literal not displayed */ OrderBy map[string]string `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*PageListAccountUserReq) Descriptor
deprecated
func (*PageListAccountUserReq) Descriptor() ([]byte, []int)
Deprecated: Use PageListAccountUserReq.ProtoReflect.Descriptor instead.
func (*PageListAccountUserReq) GetOrderBy ¶
func (x *PageListAccountUserReq) GetOrderBy() map[string]string
func (*PageListAccountUserReq) GetPageNum ¶
func (x *PageListAccountUserReq) GetPageNum() int32
func (*PageListAccountUserReq) GetPageSize ¶
func (x *PageListAccountUserReq) GetPageSize() int32
func (*PageListAccountUserReq) GetQuery ¶
func (x *PageListAccountUserReq) GetQuery() map[string]string
func (*PageListAccountUserReq) ProtoMessage ¶
func (*PageListAccountUserReq) ProtoMessage()
func (*PageListAccountUserReq) ProtoReflect ¶
func (x *PageListAccountUserReq) ProtoReflect() protoreflect.Message
func (*PageListAccountUserReq) Reset ¶
func (x *PageListAccountUserReq) Reset()
func (*PageListAccountUserReq) String ¶
func (x *PageListAccountUserReq) String() string
func (*PageListAccountUserReq) Validate ¶
func (m *PageListAccountUserReq) Validate() error
Validate checks the field values on PageListAccountUserReq 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 (*PageListAccountUserReq) ValidateAll ¶
func (m *PageListAccountUserReq) ValidateAll() error
ValidateAll checks the field values on PageListAccountUserReq 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 PageListAccountUserReqMultiError, or nil if none found.
type PageListAccountUserReqMultiError ¶
type PageListAccountUserReqMultiError []error
PageListAccountUserReqMultiError is an error wrapping multiple validation errors returned by PageListAccountUserReq.ValidateAll() if the designated constraints aren't met.
func (PageListAccountUserReqMultiError) AllErrors ¶
func (m PageListAccountUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageListAccountUserReqMultiError) Error ¶
func (m PageListAccountUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageListAccountUserReqValidationError ¶
type PageListAccountUserReqValidationError struct {
// contains filtered or unexported fields
}
PageListAccountUserReqValidationError is the validation error returned by PageListAccountUserReq.Validate if the designated constraints aren't met.
func (PageListAccountUserReqValidationError) Cause ¶
func (e PageListAccountUserReqValidationError) Cause() error
Cause function returns cause value.
func (PageListAccountUserReqValidationError) Error ¶
func (e PageListAccountUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (PageListAccountUserReqValidationError) ErrorName ¶
func (e PageListAccountUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (PageListAccountUserReqValidationError) Field ¶
func (e PageListAccountUserReqValidationError) Field() string
Field function returns field value.
func (PageListAccountUserReqValidationError) Key ¶
func (e PageListAccountUserReqValidationError) Key() bool
Key function returns key value.
func (PageListAccountUserReqValidationError) Reason ¶
func (e PageListAccountUserReqValidationError) Reason() string
Reason function returns reason value.
type PageListAccountUserResp ¶
type PageListAccountUserResp struct { List []*AccountUser `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` Total int32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` PageNum int32 `protobuf:"varint,3,opt,name=pageNum,proto3" json:"pageNum,omitempty"` PageSize int32 `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*PageListAccountUserResp) Descriptor
deprecated
func (*PageListAccountUserResp) Descriptor() ([]byte, []int)
Deprecated: Use PageListAccountUserResp.ProtoReflect.Descriptor instead.
func (*PageListAccountUserResp) GetList ¶
func (x *PageListAccountUserResp) GetList() []*AccountUser
func (*PageListAccountUserResp) GetPageNum ¶
func (x *PageListAccountUserResp) GetPageNum() int32
func (*PageListAccountUserResp) GetPageSize ¶
func (x *PageListAccountUserResp) GetPageSize() int32
func (*PageListAccountUserResp) GetTotal ¶
func (x *PageListAccountUserResp) GetTotal() int32
func (*PageListAccountUserResp) ProtoMessage ¶
func (*PageListAccountUserResp) ProtoMessage()
func (*PageListAccountUserResp) ProtoReflect ¶
func (x *PageListAccountUserResp) ProtoReflect() protoreflect.Message
func (*PageListAccountUserResp) Reset ¶
func (x *PageListAccountUserResp) Reset()
func (*PageListAccountUserResp) String ¶
func (x *PageListAccountUserResp) String() string
func (*PageListAccountUserResp) Validate ¶
func (m *PageListAccountUserResp) Validate() error
Validate checks the field values on PageListAccountUserResp 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 (*PageListAccountUserResp) ValidateAll ¶
func (m *PageListAccountUserResp) ValidateAll() error
ValidateAll checks the field values on PageListAccountUserResp 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 PageListAccountUserRespMultiError, or nil if none found.
type PageListAccountUserRespMultiError ¶
type PageListAccountUserRespMultiError []error
PageListAccountUserRespMultiError is an error wrapping multiple validation errors returned by PageListAccountUserResp.ValidateAll() if the designated constraints aren't met.
func (PageListAccountUserRespMultiError) AllErrors ¶
func (m PageListAccountUserRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageListAccountUserRespMultiError) Error ¶
func (m PageListAccountUserRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageListAccountUserRespValidationError ¶
type PageListAccountUserRespValidationError struct {
// contains filtered or unexported fields
}
PageListAccountUserRespValidationError is the validation error returned by PageListAccountUserResp.Validate if the designated constraints aren't met.
func (PageListAccountUserRespValidationError) Cause ¶
func (e PageListAccountUserRespValidationError) Cause() error
Cause function returns cause value.
func (PageListAccountUserRespValidationError) Error ¶
func (e PageListAccountUserRespValidationError) Error() string
Error satisfies the builtin error interface
func (PageListAccountUserRespValidationError) ErrorName ¶
func (e PageListAccountUserRespValidationError) ErrorName() string
ErrorName returns error name.
func (PageListAccountUserRespValidationError) Field ¶
func (e PageListAccountUserRespValidationError) Field() string
Field function returns field value.
func (PageListAccountUserRespValidationError) Key ¶
func (e PageListAccountUserRespValidationError) Key() bool
Key function returns key value.
func (PageListAccountUserRespValidationError) Reason ¶
func (e PageListAccountUserRespValidationError) Reason() string
Reason function returns reason value.
type RegisterReq ¶
type RegisterReq struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*RegisterReq) Descriptor
deprecated
func (*RegisterReq) Descriptor() ([]byte, []int)
Deprecated: Use RegisterReq.ProtoReflect.Descriptor instead.
func (*RegisterReq) GetEmail ¶
func (x *RegisterReq) GetEmail() string
func (*RegisterReq) GetPassword ¶
func (x *RegisterReq) GetPassword() string
func (*RegisterReq) GetPhone ¶
func (x *RegisterReq) GetPhone() string
func (*RegisterReq) GetUsername ¶
func (x *RegisterReq) GetUsername() string
func (*RegisterReq) ProtoMessage ¶
func (*RegisterReq) ProtoMessage()
func (*RegisterReq) ProtoReflect ¶
func (x *RegisterReq) ProtoReflect() protoreflect.Message
func (*RegisterReq) Reset ¶
func (x *RegisterReq) Reset()
func (*RegisterReq) String ¶
func (x *RegisterReq) String() string
func (*RegisterReq) Validate ¶
func (m *RegisterReq) Validate() error
Validate checks the field values on RegisterReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterReq) ValidateAll ¶
func (m *RegisterReq) ValidateAll() error
ValidateAll checks the field values on RegisterReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterReqMultiError, or nil if none found.
type RegisterReqMultiError ¶
type RegisterReqMultiError []error
RegisterReqMultiError is an error wrapping multiple validation errors returned by RegisterReq.ValidateAll() if the designated constraints aren't met.
func (RegisterReqMultiError) AllErrors ¶
func (m RegisterReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterReqMultiError) Error ¶
func (m RegisterReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterReqValidationError ¶
type RegisterReqValidationError struct {
// contains filtered or unexported fields
}
RegisterReqValidationError is the validation error returned by RegisterReq.Validate if the designated constraints aren't met.
func (RegisterReqValidationError) Cause ¶
func (e RegisterReqValidationError) Cause() error
Cause function returns cause value.
func (RegisterReqValidationError) Error ¶
func (e RegisterReqValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterReqValidationError) ErrorName ¶
func (e RegisterReqValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterReqValidationError) Field ¶
func (e RegisterReqValidationError) Field() string
Field function returns field value.
func (RegisterReqValidationError) Key ¶
func (e RegisterReqValidationError) Key() bool
Key function returns key value.
func (RegisterReqValidationError) Reason ¶
func (e RegisterReqValidationError) Reason() string
Reason function returns reason value.
type RegisterResp ¶
type RegisterResp struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RegisterResp) Descriptor
deprecated
func (*RegisterResp) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResp.ProtoReflect.Descriptor instead.
func (*RegisterResp) GetId ¶
func (x *RegisterResp) GetId() int64
func (*RegisterResp) ProtoMessage ¶
func (*RegisterResp) ProtoMessage()
func (*RegisterResp) ProtoReflect ¶
func (x *RegisterResp) ProtoReflect() protoreflect.Message
func (*RegisterResp) Reset ¶
func (x *RegisterResp) Reset()
func (*RegisterResp) String ¶
func (x *RegisterResp) String() string
func (*RegisterResp) Validate ¶
func (m *RegisterResp) Validate() error
Validate checks the field values on RegisterResp 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 (*RegisterResp) ValidateAll ¶
func (m *RegisterResp) ValidateAll() error
ValidateAll checks the field values on RegisterResp 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 RegisterRespMultiError, or nil if none found.
type RegisterRespMultiError ¶
type RegisterRespMultiError []error
RegisterRespMultiError is an error wrapping multiple validation errors returned by RegisterResp.ValidateAll() if the designated constraints aren't met.
func (RegisterRespMultiError) AllErrors ¶
func (m RegisterRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRespMultiError) Error ¶
func (m RegisterRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRespValidationError ¶
type RegisterRespValidationError struct {
// contains filtered or unexported fields
}
RegisterRespValidationError is the validation error returned by RegisterResp.Validate if the designated constraints aren't met.
func (RegisterRespValidationError) Cause ¶
func (e RegisterRespValidationError) Cause() error
Cause function returns cause value.
func (RegisterRespValidationError) Error ¶
func (e RegisterRespValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRespValidationError) ErrorName ¶
func (e RegisterRespValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRespValidationError) Field ¶
func (e RegisterRespValidationError) Field() string
Field function returns field value.
func (RegisterRespValidationError) Key ¶
func (e RegisterRespValidationError) Key() bool
Key function returns key value.
func (RegisterRespValidationError) Reason ¶
func (e RegisterRespValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAccountServiceServer ¶
type UnimplementedAccountServiceServer struct { }
UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountServiceServer) Register ¶
func (UnimplementedAccountServiceServer) Register(context.Context, *RegisterReq) (*RegisterResp, error)
type UnimplementedAccountUserServiceServer ¶
type UnimplementedAccountUserServiceServer struct { }
UnimplementedAccountUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAccountUserServiceServer) CreateAccountUser ¶
func (UnimplementedAccountUserServiceServer) CreateAccountUser(context.Context, *CreateAccountUserReq) (*AccountUser, error)
func (UnimplementedAccountUserServiceServer) DeleteAccountUser ¶
func (UnimplementedAccountUserServiceServer) DeleteAccountUser(context.Context, *DeleteAccountUserReq) (*emptypb.Empty, error)
func (UnimplementedAccountUserServiceServer) GetAccountUser ¶
func (UnimplementedAccountUserServiceServer) GetAccountUser(context.Context, *GetAccountUserReq) (*AccountUser, error)
func (UnimplementedAccountUserServiceServer) ListAccountUser ¶
func (UnimplementedAccountUserServiceServer) ListAccountUser(context.Context, *ListAccountUserReq) (*ListAccountUserResp, error)
func (UnimplementedAccountUserServiceServer) PageListAccountUser ¶
func (UnimplementedAccountUserServiceServer) PageListAccountUser(context.Context, *PageListAccountUserReq) (*PageListAccountUserResp, error)
func (UnimplementedAccountUserServiceServer) UpdateAccountUser ¶
func (UnimplementedAccountUserServiceServer) UpdateAccountUser(context.Context, *UpdateAccountUserReq) (*AccountUser, error)
type UnsafeAccountServiceServer ¶
type UnsafeAccountServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountServiceServer will result in compilation errors.
type UnsafeAccountUserServiceServer ¶
type UnsafeAccountUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAccountUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountUserServiceServer will result in compilation errors.
type UpdateAccountUserReq ¶
type UpdateAccountUserReq struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AccountUser *AccountUser `protobuf:"bytes,2,opt,name=accountUser,proto3" json:"accountUser,omitempty"` // contains filtered or unexported fields }
func (*UpdateAccountUserReq) Descriptor
deprecated
func (*UpdateAccountUserReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountUserReq.ProtoReflect.Descriptor instead.
func (*UpdateAccountUserReq) GetAccountUser ¶
func (x *UpdateAccountUserReq) GetAccountUser() *AccountUser
func (*UpdateAccountUserReq) GetId ¶
func (x *UpdateAccountUserReq) GetId() uint32
func (*UpdateAccountUserReq) ProtoMessage ¶
func (*UpdateAccountUserReq) ProtoMessage()
func (*UpdateAccountUserReq) ProtoReflect ¶
func (x *UpdateAccountUserReq) ProtoReflect() protoreflect.Message
func (*UpdateAccountUserReq) Reset ¶
func (x *UpdateAccountUserReq) Reset()
func (*UpdateAccountUserReq) String ¶
func (x *UpdateAccountUserReq) String() string
func (*UpdateAccountUserReq) Validate ¶
func (m *UpdateAccountUserReq) Validate() error
Validate checks the field values on UpdateAccountUserReq 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 (*UpdateAccountUserReq) ValidateAll ¶
func (m *UpdateAccountUserReq) ValidateAll() error
ValidateAll checks the field values on UpdateAccountUserReq 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 UpdateAccountUserReqMultiError, or nil if none found.
type UpdateAccountUserReqMultiError ¶
type UpdateAccountUserReqMultiError []error
UpdateAccountUserReqMultiError is an error wrapping multiple validation errors returned by UpdateAccountUserReq.ValidateAll() if the designated constraints aren't met.
func (UpdateAccountUserReqMultiError) AllErrors ¶
func (m UpdateAccountUserReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateAccountUserReqMultiError) Error ¶
func (m UpdateAccountUserReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateAccountUserReqValidationError ¶
type UpdateAccountUserReqValidationError struct {
// contains filtered or unexported fields
}
UpdateAccountUserReqValidationError is the validation error returned by UpdateAccountUserReq.Validate if the designated constraints aren't met.
func (UpdateAccountUserReqValidationError) Cause ¶
func (e UpdateAccountUserReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateAccountUserReqValidationError) Error ¶
func (e UpdateAccountUserReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateAccountUserReqValidationError) ErrorName ¶
func (e UpdateAccountUserReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateAccountUserReqValidationError) Field ¶
func (e UpdateAccountUserReqValidationError) Field() string
Field function returns field value.
func (UpdateAccountUserReqValidationError) Key ¶
func (e UpdateAccountUserReqValidationError) Key() bool
Key function returns key value.
func (UpdateAccountUserReqValidationError) Reason ¶
func (e UpdateAccountUserReqValidationError) Reason() string
Reason function returns reason value.