v1

package
v0.0.0-...-9bd63dd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const OperationAccountServiceLogin = "/account.service.v1.AccountService/Login"
View Source
const OperationAccountServiceRegister = "/account.service.v1.AccountService/Register"

Variables

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

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

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

View Source
var File_account_service_v1_account_error_proto protoreflect.FileDescriptor
View Source
var File_account_service_v1_account_proto protoreflect.FileDescriptor
View Source
var File_account_service_v1_account_user_proto protoreflect.FileDescriptor

Functions

func ErrorLoginFailed

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

func ErrorRegisterFailed

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

func ErrorUnknownError

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

func IsLoginFailed

func IsLoginFailed(err error) bool

func IsRegisterFailed

func IsRegisterFailed(err error) bool

func IsUnknownError

func IsUnknownError(err error) bool

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.

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

func (AccountServiceErrorReason) EnumDescriptor deprecated

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

Deprecated: Use AccountServiceErrorReason.Descriptor instead.

func (AccountServiceErrorReason) Number

func (AccountServiceErrorReason) String

func (x AccountServiceErrorReason) String() string

func (AccountServiceErrorReason) Type

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 (*AccountServiceHTTPClientImpl) Register

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.

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

Cause function returns cause value.

func (AccountUserValidationError) Error

Error satisfies the builtin error interface

func (AccountUserValidationError) ErrorName

func (e AccountUserValidationError) ErrorName() string

ErrorName returns error name.

func (AccountUserValidationError) Field

Field function returns field value.

func (AccountUserValidationError) Key

Key function returns key value.

func (AccountUserValidationError) Reason

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

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

Cause function returns cause value.

func (CreateAccountUserReqValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountUserReqValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountUserReqValidationError) Field

Field function returns field value.

func (CreateAccountUserReqValidationError) Key

Key function returns key value.

func (CreateAccountUserReqValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteAccountUserReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteAccountUserReqValidationError) ErrorName

ErrorName returns error name.

func (DeleteAccountUserReqValidationError) Field

Field function returns field value.

func (DeleteAccountUserReqValidationError) Key

Key function returns key value.

func (DeleteAccountUserReqValidationError) Reason

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

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

Cause function returns cause value.

func (GetAccountUserReqValidationError) Error

Error satisfies the builtin error interface

func (GetAccountUserReqValidationError) ErrorName

ErrorName returns error name.

func (GetAccountUserReqValidationError) Field

Field function returns field value.

func (GetAccountUserReqValidationError) Key

Key function returns key value.

func (GetAccountUserReqValidationError) Reason

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

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

Cause function returns cause value.

func (ListAccountUserReqValidationError) Error

Error satisfies the builtin error interface

func (ListAccountUserReqValidationError) ErrorName

ErrorName returns error name.

func (ListAccountUserReqValidationError) Field

Field function returns field value.

func (ListAccountUserReqValidationError) Key

Key function returns key value.

func (ListAccountUserReqValidationError) Reason

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

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

Cause function returns cause value.

func (ListAccountUserRespValidationError) Error

Error satisfies the builtin error interface

func (ListAccountUserRespValidationError) ErrorName

ErrorName returns error name.

func (ListAccountUserRespValidationError) Field

Field function returns field value.

func (ListAccountUserRespValidationError) Key

Key function returns key value.

func (ListAccountUserRespValidationError) Reason

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

Deprecated: Use LoginReq.ProtoReflect.Descriptor instead.

func (*LoginReq) GetCode

func (x *LoginReq) GetCode() string

func (*LoginReq) GetEmail

func (x *LoginReq) GetEmail() string

func (*LoginReq) GetPassword

func (x *LoginReq) GetPassword() string

func (*LoginReq) GetPhone

func (x *LoginReq) GetPhone() string

func (*LoginReq) GetType

func (x *LoginReq) GetType() string

func (*LoginReq) GetUsername

func (x *LoginReq) GetUsername() string

func (*LoginReq) ProtoMessage

func (*LoginReq) ProtoMessage()

func (*LoginReq) ProtoReflect

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

func (*LoginReq) Reset

func (x *LoginReq) Reset()

func (*LoginReq) String

func (x *LoginReq) String() string

func (*LoginReq) Validate

func (m *LoginReq) Validate() error

Validate checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*LoginReq) ValidateAll

func (m *LoginReq) ValidateAll() error

ValidateAll checks the field values on LoginReq with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReqMultiError, or nil if none found.

type LoginReqMultiError

type LoginReqMultiError []error

LoginReqMultiError is an error wrapping multiple validation errors returned by LoginReq.ValidateAll() if the designated constraints aren't met.

func (LoginReqMultiError) AllErrors

func (m LoginReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (LoginReqMultiError) Error

func (m LoginReqMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type LoginReqValidationError

type LoginReqValidationError struct {
	// contains filtered or unexported fields
}

LoginReqValidationError is the validation error returned by LoginReq.Validate if the designated constraints aren't met.

func (LoginReqValidationError) Cause

func (e LoginReqValidationError) Cause() error

Cause function returns cause value.

func (LoginReqValidationError) Error

func (e LoginReqValidationError) Error() string

Error satisfies the builtin error interface

func (LoginReqValidationError) ErrorName

func (e LoginReqValidationError) ErrorName() string

ErrorName returns error name.

func (LoginReqValidationError) Field

func (e LoginReqValidationError) Field() string

Field function returns field value.

func (LoginReqValidationError) Key

func (e LoginReqValidationError) Key() bool

Key function returns key value.

func (LoginReqValidationError) Reason

func (e LoginReqValidationError) Reason() string

Reason function returns reason value.

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

Deprecated: Use LoginResp.ProtoReflect.Descriptor instead.

func (*LoginResp) GetEmail

func (x *LoginResp) GetEmail() string

func (*LoginResp) GetId

func (x *LoginResp) GetId() int64

func (*LoginResp) GetPhone

func (x *LoginResp) GetPhone() string

func (*LoginResp) GetUsername

func (x *LoginResp) GetUsername() string

func (*LoginResp) ProtoMessage

func (*LoginResp) ProtoMessage()

func (*LoginResp) ProtoReflect

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

func (*LoginResp) Reset

func (x *LoginResp) Reset()

func (*LoginResp) String

func (x *LoginResp) String() string

func (*LoginResp) Validate

func (m *LoginResp) Validate() error

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

func (m *LoginResp) ValidateAll() error

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

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

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

Cause function returns cause value.

func (PageListAccountUserReqValidationError) Error

Error satisfies the builtin error interface

func (PageListAccountUserReqValidationError) ErrorName

ErrorName returns error name.

func (PageListAccountUserReqValidationError) Field

Field function returns field value.

func (PageListAccountUserReqValidationError) Key

Key function returns key value.

func (PageListAccountUserReqValidationError) Reason

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

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

Cause function returns cause value.

func (PageListAccountUserRespValidationError) Error

Error satisfies the builtin error interface

func (PageListAccountUserRespValidationError) ErrorName

ErrorName returns error name.

func (PageListAccountUserRespValidationError) Field

Field function returns field value.

func (PageListAccountUserRespValidationError) Key

Key function returns key value.

func (PageListAccountUserRespValidationError) Reason

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

Cause function returns cause value.

func (RegisterReqValidationError) Error

Error satisfies the builtin error interface

func (RegisterReqValidationError) ErrorName

func (e RegisterReqValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterReqValidationError) Field

Field function returns field value.

func (RegisterReqValidationError) Key

Key function returns key value.

func (RegisterReqValidationError) Reason

Reason function returns reason value.

type 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

Cause function returns cause value.

func (RegisterRespValidationError) Error

Error satisfies the builtin error interface

func (RegisterRespValidationError) ErrorName

func (e RegisterRespValidationError) ErrorName() string

ErrorName returns error name.

func (RegisterRespValidationError) Field

Field function returns field value.

func (RegisterRespValidationError) Key

Key function returns key value.

func (RegisterRespValidationError) Reason

Reason function returns reason value.

type UnimplementedAccountServiceServer

type UnimplementedAccountServiceServer struct {
}

UnimplementedAccountServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountServiceServer) Login

func (UnimplementedAccountServiceServer) Register

type UnimplementedAccountUserServiceServer

type UnimplementedAccountUserServiceServer struct {
}

UnimplementedAccountUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountUserServiceServer) CreateAccountUser

func (UnimplementedAccountUserServiceServer) DeleteAccountUser

func (UnimplementedAccountUserServiceServer) GetAccountUser

func (UnimplementedAccountUserServiceServer) ListAccountUser

func (UnimplementedAccountUserServiceServer) PageListAccountUser

func (UnimplementedAccountUserServiceServer) UpdateAccountUser

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

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

Cause function returns cause value.

func (UpdateAccountUserReqValidationError) Error

Error satisfies the builtin error interface

func (UpdateAccountUserReqValidationError) ErrorName

ErrorName returns error name.

func (UpdateAccountUserReqValidationError) Field

Field function returns field value.

func (UpdateAccountUserReqValidationError) Key

Key function returns key value.

func (UpdateAccountUserReqValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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