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: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ums_service_v1_ums_proto protoreflect.FileDescriptor
View Source
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

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 {
	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

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

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

Cause function returns cause value.

func (CreateAccountUserRespValidationError) Error

Error satisfies the builtin error interface

func (CreateAccountUserRespValidationError) ErrorName

ErrorName returns error name.

func (CreateAccountUserRespValidationError) Field

Field function returns field value.

func (CreateAccountUserRespValidationError) Key

Key function returns key value.

func (CreateAccountUserRespValidationError) Reason

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

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

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

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

Cause function returns cause value.

func (GetAccountUserRespValidationError) Error

Error satisfies the builtin error interface

func (GetAccountUserRespValidationError) ErrorName

ErrorName returns error name.

func (GetAccountUserRespValidationError) Field

Field function returns field value.

func (GetAccountUserRespValidationError) Key

Key function returns key value.

func (GetAccountUserRespValidationError) Reason

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

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 {
	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

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"`
	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) 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 {
	// contains filtered or unexported fields
}

func (*LoginResp) Descriptor deprecated

func (*LoginResp) Descriptor() ([]byte, []int)

Deprecated: Use LoginResp.ProtoReflect.Descriptor instead.

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 LogoutReq

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

func (*LogoutReq) Descriptor deprecated

func (*LogoutReq) Descriptor() ([]byte, []int)

Deprecated: Use LogoutReq.ProtoReflect.Descriptor instead.

func (*LogoutReq) ProtoMessage

func (*LogoutReq) ProtoMessage()

func (*LogoutReq) ProtoReflect

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

func (*LogoutReq) Reset

func (x *LogoutReq) Reset()

func (*LogoutReq) String

func (x *LogoutReq) String() string

func (*LogoutReq) Validate

func (m *LogoutReq) Validate() error

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

func (m *LogoutReq) ValidateAll() error

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

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

Error satisfies the builtin error interface

func (LogoutRespValidationError) ErrorName

func (e LogoutRespValidationError) ErrorName() string

ErrorName returns error name.

func (LogoutRespValidationError) Field

Field function returns field value.

func (LogoutRespValidationError) Key

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

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

func (UnimplementedUmsServer) GetAccountUser

func (UnimplementedUmsServer) ListAccountUser

func (UnimplementedUmsServer) Login

func (UnimplementedUmsServer) Logout

func (UnimplementedUmsServer) Register

func (UnimplementedUmsServer) UpdateAccountUser

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

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