Documentation ¶
Index ¶
- Variables
- func RegisterUmsServer(s grpc.ServiceRegistrar, srv UmsServer)
- type AccountUser
- func (*AccountUser) Descriptor() ([]byte, []int)deprecated
- func (x *AccountUser) GetEmail() string
- func (x *AccountUser) GetId() int64
- func (x *AccountUser) GetPassword() string
- func (x *AccountUser) GetPhone() 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 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) GetEmail() string
- func (x *CreateAccountUserReq) GetPassword() string
- func (x *CreateAccountUserReq) GetPhone() string
- func (x *CreateAccountUserReq) GetUsername() string
- 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 CreateAccountUserResp
- func (*CreateAccountUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAccountUserResp) GetId() int64
- func (*CreateAccountUserResp) ProtoMessage()
- func (x *CreateAccountUserResp) ProtoReflect() protoreflect.Message
- func (x *CreateAccountUserResp) Reset()
- func (x *CreateAccountUserResp) String() string
- func (m *CreateAccountUserResp) Validate() error
- func (m *CreateAccountUserResp) ValidateAll() error
- type CreateAccountUserRespMultiError
- type CreateAccountUserRespValidationError
- func (e CreateAccountUserRespValidationError) Cause() error
- func (e CreateAccountUserRespValidationError) Error() string
- func (e CreateAccountUserRespValidationError) ErrorName() string
- func (e CreateAccountUserRespValidationError) Field() string
- func (e CreateAccountUserRespValidationError) Key() bool
- func (e CreateAccountUserRespValidationError) Reason() string
- type DeleteAccountUserReq
- func (*DeleteAccountUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAccountUserReq) GetId() int64
- 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) GetId() int64
- 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 GetAccountUserResp
- func (*GetAccountUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetAccountUserResp) GetEmail() string
- func (x *GetAccountUserResp) GetId() int64
- func (x *GetAccountUserResp) GetPassword() string
- func (x *GetAccountUserResp) GetPhone() string
- func (x *GetAccountUserResp) GetUsername() string
- func (*GetAccountUserResp) ProtoMessage()
- func (x *GetAccountUserResp) ProtoReflect() protoreflect.Message
- func (x *GetAccountUserResp) Reset()
- func (x *GetAccountUserResp) String() string
- func (m *GetAccountUserResp) Validate() error
- func (m *GetAccountUserResp) ValidateAll() error
- type GetAccountUserRespMultiError
- type GetAccountUserRespValidationError
- func (e GetAccountUserRespValidationError) Cause() error
- func (e GetAccountUserRespValidationError) Error() string
- func (e GetAccountUserRespValidationError) ErrorName() string
- func (e GetAccountUserRespValidationError) Field() string
- func (e GetAccountUserRespValidationError) Key() bool
- func (e GetAccountUserRespValidationError) Reason() string
- type ListAccountUserReq
- func (*ListAccountUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListAccountUserReq) GetPageNum() int64
- func (x *ListAccountUserReq) GetPageSize() int64
- 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) GetCurrentPage() int64
- func (x *ListAccountUserResp) GetData() []*AccountUser
- func (x *ListAccountUserResp) GetPageSize() int64
- func (x *ListAccountUserResp) GetTotalPages() int64
- 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
- type LoginRespMultiError
- type LoginRespValidationError
- type LogoutReq
- type LogoutReqMultiError
- type LogoutReqValidationError
- type LogoutResp
- type LogoutRespMultiError
- type LogoutRespValidationError
- 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 UmsClient
- type UmsServer
- type UnimplementedUmsServer
- func (UnimplementedUmsServer) CreateAccountUser(context.Context, *CreateAccountUserReq) (*CreateAccountUserResp, error)
- func (UnimplementedUmsServer) DeleteAccountUser(context.Context, *DeleteAccountUserReq) (*emptypb.Empty, error)
- func (UnimplementedUmsServer) GetAccountUser(context.Context, *GetAccountUserReq) (*GetAccountUserResp, error)
- func (UnimplementedUmsServer) ListAccountUser(context.Context, *ListAccountUserReq) (*ListAccountUserResp, error)
- func (UnimplementedUmsServer) Login(context.Context, *LoginReq) (*LoginResp, error)
- func (UnimplementedUmsServer) Logout(context.Context, *LogoutReq) (*LogoutResp, error)
- func (UnimplementedUmsServer) Register(context.Context, *RegisterReq) (*RegisterResp, error)
- func (UnimplementedUmsServer) UpdateAccountUser(context.Context, *UpdateAccountUserReq) (*emptypb.Empty, error)
- type UnsafeUmsServer
- type UpdateAccountUserReq
- func (*UpdateAccountUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAccountUserReq) GetEmail() string
- func (x *UpdateAccountUserReq) GetId() int64
- func (x *UpdateAccountUserReq) GetPassword() string
- func (x *UpdateAccountUserReq) GetPhone() string
- func (x *UpdateAccountUserReq) GetUsername() string
- 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 ¶
This section is empty.
Variables ¶
var File_ums_service_v1_ums_proto protoreflect.FileDescriptor
var Ums_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.ums.service.v1.Ums", HandlerType: (*UmsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _Ums_Register_Handler, }, { MethodName: "Login", Handler: _Ums_Login_Handler, }, { MethodName: "Logout", Handler: _Ums_Logout_Handler, }, { MethodName: "CreateAccountUser", Handler: _Ums_CreateAccountUser_Handler, }, { MethodName: "UpdateAccountUser", Handler: _Ums_UpdateAccountUser_Handler, }, { MethodName: "DeleteAccountUser", Handler: _Ums_DeleteAccountUser_Handler, }, { MethodName: "GetAccountUser", Handler: _Ums_GetAccountUser_Handler, }, { MethodName: "ListAccountUser", Handler: _Ums_ListAccountUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "ums/service/v1/ums.proto", }
Ums_ServiceDesc is the grpc.ServiceDesc for Ums service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUmsServer ¶
func RegisterUmsServer(s grpc.ServiceRegistrar, srv UmsServer)
Types ¶
type AccountUser ¶
type AccountUser 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"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,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() int64
func (*AccountUser) GetPassword ¶
func (x *AccountUser) GetPassword() string
func (*AccountUser) GetPhone ¶
func (x *AccountUser) GetPhone() 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 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 { Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountUserReq) Descriptor
deprecated
func (*CreateAccountUserReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountUserReq.ProtoReflect.Descriptor instead.
func (*CreateAccountUserReq) GetEmail ¶
func (x *CreateAccountUserReq) GetEmail() string
func (*CreateAccountUserReq) GetPassword ¶
func (x *CreateAccountUserReq) GetPassword() string
func (*CreateAccountUserReq) GetPhone ¶
func (x *CreateAccountUserReq) GetPhone() string
func (*CreateAccountUserReq) GetUsername ¶
func (x *CreateAccountUserReq) GetUsername() string
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 CreateAccountUserResp ¶
type CreateAccountUserResp struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateAccountUserResp) Descriptor
deprecated
func (*CreateAccountUserResp) Descriptor() ([]byte, []int)
Deprecated: Use CreateAccountUserResp.ProtoReflect.Descriptor instead.
func (*CreateAccountUserResp) GetId ¶
func (x *CreateAccountUserResp) GetId() int64
func (*CreateAccountUserResp) ProtoMessage ¶
func (*CreateAccountUserResp) ProtoMessage()
func (*CreateAccountUserResp) ProtoReflect ¶
func (x *CreateAccountUserResp) ProtoReflect() protoreflect.Message
func (*CreateAccountUserResp) Reset ¶
func (x *CreateAccountUserResp) Reset()
func (*CreateAccountUserResp) String ¶
func (x *CreateAccountUserResp) String() string
func (*CreateAccountUserResp) Validate ¶
func (m *CreateAccountUserResp) Validate() error
Validate checks the field values on CreateAccountUserResp 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 (*CreateAccountUserResp) ValidateAll ¶
func (m *CreateAccountUserResp) ValidateAll() error
ValidateAll checks the field values on CreateAccountUserResp 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 CreateAccountUserRespMultiError, or nil if none found.
type CreateAccountUserRespMultiError ¶
type CreateAccountUserRespMultiError []error
CreateAccountUserRespMultiError is an error wrapping multiple validation errors returned by CreateAccountUserResp.ValidateAll() if the designated constraints aren't met.
func (CreateAccountUserRespMultiError) AllErrors ¶
func (m CreateAccountUserRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAccountUserRespMultiError) Error ¶
func (m CreateAccountUserRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAccountUserRespValidationError ¶
type CreateAccountUserRespValidationError struct {
// contains filtered or unexported fields
}
CreateAccountUserRespValidationError is the validation error returned by CreateAccountUserResp.Validate if the designated constraints aren't met.
func (CreateAccountUserRespValidationError) Cause ¶
func (e CreateAccountUserRespValidationError) Cause() error
Cause function returns cause value.
func (CreateAccountUserRespValidationError) Error ¶
func (e CreateAccountUserRespValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAccountUserRespValidationError) ErrorName ¶
func (e CreateAccountUserRespValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAccountUserRespValidationError) Field ¶
func (e CreateAccountUserRespValidationError) Field() string
Field function returns field value.
func (CreateAccountUserRespValidationError) Key ¶
func (e CreateAccountUserRespValidationError) Key() bool
Key function returns key value.
func (CreateAccountUserRespValidationError) Reason ¶
func (e CreateAccountUserRespValidationError) Reason() string
Reason function returns reason value.
type DeleteAccountUserReq ¶
type DeleteAccountUserReq struct { Id int64 `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() int64
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 int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAccountUserReq) Descriptor
deprecated
func (*GetAccountUserReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountUserReq.ProtoReflect.Descriptor instead.
func (*GetAccountUserReq) GetId ¶
func (x *GetAccountUserReq) GetId() int64
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 GetAccountUserResp ¶
type GetAccountUserResp 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"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*GetAccountUserResp) Descriptor
deprecated
func (*GetAccountUserResp) Descriptor() ([]byte, []int)
Deprecated: Use GetAccountUserResp.ProtoReflect.Descriptor instead.
func (*GetAccountUserResp) GetEmail ¶
func (x *GetAccountUserResp) GetEmail() string
func (*GetAccountUserResp) GetId ¶
func (x *GetAccountUserResp) GetId() int64
func (*GetAccountUserResp) GetPassword ¶
func (x *GetAccountUserResp) GetPassword() string
func (*GetAccountUserResp) GetPhone ¶
func (x *GetAccountUserResp) GetPhone() string
func (*GetAccountUserResp) GetUsername ¶
func (x *GetAccountUserResp) GetUsername() string
func (*GetAccountUserResp) ProtoMessage ¶
func (*GetAccountUserResp) ProtoMessage()
func (*GetAccountUserResp) ProtoReflect ¶
func (x *GetAccountUserResp) ProtoReflect() protoreflect.Message
func (*GetAccountUserResp) Reset ¶
func (x *GetAccountUserResp) Reset()
func (*GetAccountUserResp) String ¶
func (x *GetAccountUserResp) String() string
func (*GetAccountUserResp) Validate ¶
func (m *GetAccountUserResp) Validate() error
Validate checks the field values on GetAccountUserResp 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 (*GetAccountUserResp) ValidateAll ¶
func (m *GetAccountUserResp) ValidateAll() error
ValidateAll checks the field values on GetAccountUserResp 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 GetAccountUserRespMultiError, or nil if none found.
type GetAccountUserRespMultiError ¶
type GetAccountUserRespMultiError []error
GetAccountUserRespMultiError is an error wrapping multiple validation errors returned by GetAccountUserResp.ValidateAll() if the designated constraints aren't met.
func (GetAccountUserRespMultiError) AllErrors ¶
func (m GetAccountUserRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAccountUserRespMultiError) Error ¶
func (m GetAccountUserRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAccountUserRespValidationError ¶
type GetAccountUserRespValidationError struct {
// contains filtered or unexported fields
}
GetAccountUserRespValidationError is the validation error returned by GetAccountUserResp.Validate if the designated constraints aren't met.
func (GetAccountUserRespValidationError) Cause ¶
func (e GetAccountUserRespValidationError) Cause() error
Cause function returns cause value.
func (GetAccountUserRespValidationError) Error ¶
func (e GetAccountUserRespValidationError) Error() string
Error satisfies the builtin error interface
func (GetAccountUserRespValidationError) ErrorName ¶
func (e GetAccountUserRespValidationError) ErrorName() string
ErrorName returns error name.
func (GetAccountUserRespValidationError) Field ¶
func (e GetAccountUserRespValidationError) Field() string
Field function returns field value.
func (GetAccountUserRespValidationError) Key ¶
func (e GetAccountUserRespValidationError) Key() bool
Key function returns key value.
func (GetAccountUserRespValidationError) Reason ¶
func (e GetAccountUserRespValidationError) Reason() string
Reason function returns reason value.
type ListAccountUserReq ¶
type ListAccountUserReq struct { PageNum int64 `protobuf:"varint,1,opt,name=pageNum,proto3" json:"pageNum,omitempty"` PageSize int64 `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*ListAccountUserReq) Descriptor
deprecated
func (*ListAccountUserReq) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountUserReq.ProtoReflect.Descriptor instead.
func (*ListAccountUserReq) GetPageNum ¶
func (x *ListAccountUserReq) GetPageNum() int64
func (*ListAccountUserReq) GetPageSize ¶
func (x *ListAccountUserReq) GetPageSize() int64
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 { TotalPages int64 `protobuf:"varint,1,opt,name=totalPages,proto3" json:"totalPages,omitempty"` CurrentPage int64 `protobuf:"varint,2,opt,name=currentPage,proto3" json:"currentPage,omitempty"` PageSize int64 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"` Data []*AccountUser `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListAccountUserResp) Descriptor
deprecated
func (*ListAccountUserResp) Descriptor() ([]byte, []int)
Deprecated: Use ListAccountUserResp.ProtoReflect.Descriptor instead.
func (*ListAccountUserResp) GetCurrentPage ¶
func (x *ListAccountUserResp) GetCurrentPage() int64
func (*ListAccountUserResp) GetData ¶
func (x *ListAccountUserResp) GetData() []*AccountUser
func (*ListAccountUserResp) GetPageSize ¶
func (x *ListAccountUserResp) GetPageSize() int64
func (*ListAccountUserResp) GetTotalPages ¶
func (x *ListAccountUserResp) GetTotalPages() int64
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"` Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,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 {
// contains filtered or unexported fields
}
func (*LoginResp) Descriptor
deprecated
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 LogoutReq ¶
type LogoutReq struct {
// contains filtered or unexported fields
}
func (*LogoutReq) Descriptor
deprecated
func (*LogoutReq) ProtoMessage ¶
func (*LogoutReq) ProtoMessage()
func (*LogoutReq) ProtoReflect ¶
func (x *LogoutReq) ProtoReflect() protoreflect.Message
func (*LogoutReq) Validate ¶
Validate checks the field values on LogoutReq 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 (*LogoutReq) ValidateAll ¶
ValidateAll checks the field values on LogoutReq 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 LogoutReqMultiError, or nil if none found.
type LogoutReqMultiError ¶
type LogoutReqMultiError []error
LogoutReqMultiError is an error wrapping multiple validation errors returned by LogoutReq.ValidateAll() if the designated constraints aren't met.
func (LogoutReqMultiError) AllErrors ¶
func (m LogoutReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutReqMultiError) Error ¶
func (m LogoutReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutReqValidationError ¶
type LogoutReqValidationError struct {
// contains filtered or unexported fields
}
LogoutReqValidationError is the validation error returned by LogoutReq.Validate if the designated constraints aren't met.
func (LogoutReqValidationError) Cause ¶
func (e LogoutReqValidationError) Cause() error
Cause function returns cause value.
func (LogoutReqValidationError) Error ¶
func (e LogoutReqValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutReqValidationError) ErrorName ¶
func (e LogoutReqValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutReqValidationError) Field ¶
func (e LogoutReqValidationError) Field() string
Field function returns field value.
func (LogoutReqValidationError) Key ¶
func (e LogoutReqValidationError) Key() bool
Key function returns key value.
func (LogoutReqValidationError) Reason ¶
func (e LogoutReqValidationError) Reason() string
Reason function returns reason value.
type LogoutResp ¶
type LogoutResp struct {
// contains filtered or unexported fields
}
func (*LogoutResp) Descriptor
deprecated
func (*LogoutResp) Descriptor() ([]byte, []int)
Deprecated: Use LogoutResp.ProtoReflect.Descriptor instead.
func (*LogoutResp) ProtoMessage ¶
func (*LogoutResp) ProtoMessage()
func (*LogoutResp) ProtoReflect ¶
func (x *LogoutResp) ProtoReflect() protoreflect.Message
func (*LogoutResp) Reset ¶
func (x *LogoutResp) Reset()
func (*LogoutResp) String ¶
func (x *LogoutResp) String() string
func (*LogoutResp) Validate ¶
func (m *LogoutResp) Validate() error
Validate checks the field values on LogoutResp 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 (*LogoutResp) ValidateAll ¶
func (m *LogoutResp) ValidateAll() error
ValidateAll checks the field values on LogoutResp 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 LogoutRespMultiError, or nil if none found.
type LogoutRespMultiError ¶
type LogoutRespMultiError []error
LogoutRespMultiError is an error wrapping multiple validation errors returned by LogoutResp.ValidateAll() if the designated constraints aren't met.
func (LogoutRespMultiError) AllErrors ¶
func (m LogoutRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutRespMultiError) Error ¶
func (m LogoutRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutRespValidationError ¶
type LogoutRespValidationError struct {
// contains filtered or unexported fields
}
LogoutRespValidationError is the validation error returned by LogoutResp.Validate if the designated constraints aren't met.
func (LogoutRespValidationError) Cause ¶
func (e LogoutRespValidationError) Cause() error
Cause function returns cause value.
func (LogoutRespValidationError) Error ¶
func (e LogoutRespValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutRespValidationError) ErrorName ¶
func (e LogoutRespValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutRespValidationError) Field ¶
func (e LogoutRespValidationError) Field() string
Field function returns field value.
func (LogoutRespValidationError) Key ¶
func (e LogoutRespValidationError) Key() bool
Key function returns key value.
func (LogoutRespValidationError) Reason ¶
func (e LogoutRespValidationError) Reason() string
Reason function returns reason value.
type RegisterReq ¶
type RegisterReq struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,2,opt,name=phone,proto3" json:"phone,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,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 UmsClient ¶
type UmsClient interface { Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*RegisterResp, error) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error) Logout(ctx context.Context, in *LogoutReq, opts ...grpc.CallOption) (*LogoutResp, error) CreateAccountUser(ctx context.Context, in *CreateAccountUserReq, opts ...grpc.CallOption) (*CreateAccountUserResp, error) UpdateAccountUser(ctx context.Context, in *UpdateAccountUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) DeleteAccountUser(ctx context.Context, in *DeleteAccountUserReq, opts ...grpc.CallOption) (*emptypb.Empty, error) GetAccountUser(ctx context.Context, in *GetAccountUserReq, opts ...grpc.CallOption) (*GetAccountUserResp, error) ListAccountUser(ctx context.Context, in *ListAccountUserReq, opts ...grpc.CallOption) (*ListAccountUserResp, error) }
UmsClient is the client API for Ums 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 NewUmsClient ¶
func NewUmsClient(cc grpc.ClientConnInterface) UmsClient
type UmsServer ¶
type UmsServer interface { Register(context.Context, *RegisterReq) (*RegisterResp, error) Login(context.Context, *LoginReq) (*LoginResp, error) Logout(context.Context, *LogoutReq) (*LogoutResp, error) CreateAccountUser(context.Context, *CreateAccountUserReq) (*CreateAccountUserResp, error) UpdateAccountUser(context.Context, *UpdateAccountUserReq) (*emptypb.Empty, error) DeleteAccountUser(context.Context, *DeleteAccountUserReq) (*emptypb.Empty, error) GetAccountUser(context.Context, *GetAccountUserReq) (*GetAccountUserResp, error) ListAccountUser(context.Context, *ListAccountUserReq) (*ListAccountUserResp, error) // contains filtered or unexported methods }
UmsServer is the server API for Ums service. All implementations must embed UnimplementedUmsServer for forward compatibility
type UnimplementedUmsServer ¶
type UnimplementedUmsServer struct { }
UnimplementedUmsServer must be embedded to have forward compatible implementations.
func (UnimplementedUmsServer) CreateAccountUser ¶
func (UnimplementedUmsServer) CreateAccountUser(context.Context, *CreateAccountUserReq) (*CreateAccountUserResp, error)
func (UnimplementedUmsServer) DeleteAccountUser ¶
func (UnimplementedUmsServer) DeleteAccountUser(context.Context, *DeleteAccountUserReq) (*emptypb.Empty, error)
func (UnimplementedUmsServer) GetAccountUser ¶
func (UnimplementedUmsServer) GetAccountUser(context.Context, *GetAccountUserReq) (*GetAccountUserResp, error)
func (UnimplementedUmsServer) ListAccountUser ¶
func (UnimplementedUmsServer) ListAccountUser(context.Context, *ListAccountUserReq) (*ListAccountUserResp, error)
func (UnimplementedUmsServer) Logout ¶
func (UnimplementedUmsServer) Logout(context.Context, *LogoutReq) (*LogoutResp, error)
func (UnimplementedUmsServer) Register ¶
func (UnimplementedUmsServer) Register(context.Context, *RegisterReq) (*RegisterResp, error)
func (UnimplementedUmsServer) UpdateAccountUser ¶
func (UnimplementedUmsServer) UpdateAccountUser(context.Context, *UpdateAccountUserReq) (*emptypb.Empty, error)
type UnsafeUmsServer ¶
type UnsafeUmsServer interface {
// contains filtered or unexported methods
}
UnsafeUmsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UmsServer will result in compilation errors.
type UpdateAccountUserReq ¶
type UpdateAccountUserReq 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"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"` // contains filtered or unexported fields }
func (*UpdateAccountUserReq) Descriptor
deprecated
func (*UpdateAccountUserReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAccountUserReq.ProtoReflect.Descriptor instead.
func (*UpdateAccountUserReq) GetEmail ¶
func (x *UpdateAccountUserReq) GetEmail() string
func (*UpdateAccountUserReq) GetId ¶
func (x *UpdateAccountUserReq) GetId() int64
func (*UpdateAccountUserReq) GetPassword ¶
func (x *UpdateAccountUserReq) GetPassword() string
func (*UpdateAccountUserReq) GetPhone ¶
func (x *UpdateAccountUserReq) GetPhone() string
func (*UpdateAccountUserReq) GetUsername ¶
func (x *UpdateAccountUserReq) GetUsername() string
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.