Documentation
¶
Index ¶
- Variables
- func RegisterProductServer(s grpc.ServiceRegistrar, srv ProductServer)
- type Code
- type CreateProductReply
- func (*CreateProductReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProductReply) GetCode() Code
- func (x *CreateProductReply) GetData() *CreateProductReplyProduct
- func (x *CreateProductReply) GetMsg() string
- func (*CreateProductReply) ProtoMessage()
- func (x *CreateProductReply) ProtoReflect() protoreflect.Message
- func (x *CreateProductReply) Reset()
- func (x *CreateProductReply) String() string
- func (m *CreateProductReply) Validate() error
- type CreateProductReplyProduct
- func (*CreateProductReplyProduct) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProductReplyProduct) GetId() int64
- func (*CreateProductReplyProduct) ProtoMessage()
- func (x *CreateProductReplyProduct) ProtoReflect() protoreflect.Message
- func (x *CreateProductReplyProduct) Reset()
- func (x *CreateProductReplyProduct) String() string
- func (m *CreateProductReplyProduct) Validate() error
- type CreateProductReplyProductValidationError
- func (e CreateProductReplyProductValidationError) Cause() error
- func (e CreateProductReplyProductValidationError) Error() string
- func (e CreateProductReplyProductValidationError) ErrorName() string
- func (e CreateProductReplyProductValidationError) Field() string
- func (e CreateProductReplyProductValidationError) Key() bool
- func (e CreateProductReplyProductValidationError) Reason() string
- type CreateProductReplyValidationError
- func (e CreateProductReplyValidationError) Cause() error
- func (e CreateProductReplyValidationError) Error() string
- func (e CreateProductReplyValidationError) ErrorName() string
- func (e CreateProductReplyValidationError) Field() string
- func (e CreateProductReplyValidationError) Key() bool
- func (e CreateProductReplyValidationError) Reason() string
- type CreateProductReq
- func (*CreateProductReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProductReq) GetProduct() *ProductEntity
- func (*CreateProductReq) ProtoMessage()
- func (x *CreateProductReq) ProtoReflect() protoreflect.Message
- func (x *CreateProductReq) Reset()
- func (x *CreateProductReq) String() string
- func (m *CreateProductReq) Validate() error
- type CreateProductReqValidationError
- func (e CreateProductReqValidationError) Cause() error
- func (e CreateProductReqValidationError) Error() string
- func (e CreateProductReqValidationError) ErrorName() string
- func (e CreateProductReqValidationError) Field() string
- func (e CreateProductReqValidationError) Key() bool
- func (e CreateProductReqValidationError) Reason() string
- type DeListingProductReply
- func (*DeListingProductReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeListingProductReply) GetCode() Code
- func (x *DeListingProductReply) GetData() *DeListingProductReplyProduct
- func (x *DeListingProductReply) GetMsg() string
- func (*DeListingProductReply) ProtoMessage()
- func (x *DeListingProductReply) ProtoReflect() protoreflect.Message
- func (x *DeListingProductReply) Reset()
- func (x *DeListingProductReply) String() string
- func (m *DeListingProductReply) Validate() error
- type DeListingProductReplyProduct
- func (*DeListingProductReplyProduct) Descriptor() ([]byte, []int)deprecated
- func (x *DeListingProductReplyProduct) GetIds() []int64
- func (*DeListingProductReplyProduct) ProtoMessage()
- func (x *DeListingProductReplyProduct) ProtoReflect() protoreflect.Message
- func (x *DeListingProductReplyProduct) Reset()
- func (x *DeListingProductReplyProduct) String() string
- func (m *DeListingProductReplyProduct) Validate() error
- type DeListingProductReplyProductValidationError
- func (e DeListingProductReplyProductValidationError) Cause() error
- func (e DeListingProductReplyProductValidationError) Error() string
- func (e DeListingProductReplyProductValidationError) ErrorName() string
- func (e DeListingProductReplyProductValidationError) Field() string
- func (e DeListingProductReplyProductValidationError) Key() bool
- func (e DeListingProductReplyProductValidationError) Reason() string
- type DeListingProductReplyValidationError
- func (e DeListingProductReplyValidationError) Cause() error
- func (e DeListingProductReplyValidationError) Error() string
- func (e DeListingProductReplyValidationError) ErrorName() string
- func (e DeListingProductReplyValidationError) Field() string
- func (e DeListingProductReplyValidationError) Key() bool
- func (e DeListingProductReplyValidationError) Reason() string
- type DeListingProductReq
- func (*DeListingProductReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeListingProductReq) GetIds() []int64
- func (*DeListingProductReq) ProtoMessage()
- func (x *DeListingProductReq) ProtoReflect() protoreflect.Message
- func (x *DeListingProductReq) Reset()
- func (x *DeListingProductReq) String() string
- func (m *DeListingProductReq) Validate() error
- type DeListingProductReqValidationError
- func (e DeListingProductReqValidationError) Cause() error
- func (e DeListingProductReqValidationError) Error() string
- func (e DeListingProductReqValidationError) ErrorName() string
- func (e DeListingProductReqValidationError) Field() string
- func (e DeListingProductReqValidationError) Key() bool
- func (e DeListingProductReqValidationError) Reason() string
- type DeleteProductReply
- func (*DeleteProductReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProductReply) GetCode() Code
- func (x *DeleteProductReply) GetData() *DeleteProductReplyProduct
- func (x *DeleteProductReply) GetMsg() string
- func (*DeleteProductReply) ProtoMessage()
- func (x *DeleteProductReply) ProtoReflect() protoreflect.Message
- func (x *DeleteProductReply) Reset()
- func (x *DeleteProductReply) String() string
- func (m *DeleteProductReply) Validate() error
- type DeleteProductReplyProduct
- func (*DeleteProductReplyProduct) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProductReplyProduct) GetIds() []int64
- func (*DeleteProductReplyProduct) ProtoMessage()
- func (x *DeleteProductReplyProduct) ProtoReflect() protoreflect.Message
- func (x *DeleteProductReplyProduct) Reset()
- func (x *DeleteProductReplyProduct) String() string
- func (m *DeleteProductReplyProduct) Validate() error
- type DeleteProductReplyProductValidationError
- func (e DeleteProductReplyProductValidationError) Cause() error
- func (e DeleteProductReplyProductValidationError) Error() string
- func (e DeleteProductReplyProductValidationError) ErrorName() string
- func (e DeleteProductReplyProductValidationError) Field() string
- func (e DeleteProductReplyProductValidationError) Key() bool
- func (e DeleteProductReplyProductValidationError) Reason() string
- type DeleteProductReplyValidationError
- func (e DeleteProductReplyValidationError) Cause() error
- func (e DeleteProductReplyValidationError) Error() string
- func (e DeleteProductReplyValidationError) ErrorName() string
- func (e DeleteProductReplyValidationError) Field() string
- func (e DeleteProductReplyValidationError) Key() bool
- func (e DeleteProductReplyValidationError) Reason() string
- type DeleteProductReq
- func (*DeleteProductReq) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProductReq) GetIds() []int64
- func (*DeleteProductReq) ProtoMessage()
- func (x *DeleteProductReq) ProtoReflect() protoreflect.Message
- func (x *DeleteProductReq) Reset()
- func (x *DeleteProductReq) String() string
- func (m *DeleteProductReq) Validate() error
- type DeleteProductReqValidationError
- func (e DeleteProductReqValidationError) Cause() error
- func (e DeleteProductReqValidationError) Error() string
- func (e DeleteProductReqValidationError) ErrorName() string
- func (e DeleteProductReqValidationError) Field() string
- func (e DeleteProductReqValidationError) Key() bool
- func (e DeleteProductReqValidationError) Reason() string
- type GetProductListReply
- func (*GetProductListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductListReply) GetCode() Code
- func (x *GetProductListReply) GetData() *GetProductListReplyProduct
- func (x *GetProductListReply) GetMsg() string
- func (*GetProductListReply) ProtoMessage()
- func (x *GetProductListReply) ProtoReflect() protoreflect.Message
- func (x *GetProductListReply) Reset()
- func (x *GetProductListReply) String() string
- func (m *GetProductListReply) Validate() error
- type GetProductListReplyProduct
- func (*GetProductListReplyProduct) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductListReplyProduct) GetPage() int64
- func (x *GetProductListReplyProduct) GetPageSize() int64
- func (x *GetProductListReplyProduct) GetProductList() []*ProductEntity
- func (x *GetProductListReplyProduct) GetTotal() int64
- func (x *GetProductListReplyProduct) GetTotalPage() int64
- func (*GetProductListReplyProduct) ProtoMessage()
- func (x *GetProductListReplyProduct) ProtoReflect() protoreflect.Message
- func (x *GetProductListReplyProduct) Reset()
- func (x *GetProductListReplyProduct) String() string
- func (m *GetProductListReplyProduct) Validate() error
- type GetProductListReplyProductValidationError
- func (e GetProductListReplyProductValidationError) Cause() error
- func (e GetProductListReplyProductValidationError) Error() string
- func (e GetProductListReplyProductValidationError) ErrorName() string
- func (e GetProductListReplyProductValidationError) Field() string
- func (e GetProductListReplyProductValidationError) Key() bool
- func (e GetProductListReplyProductValidationError) Reason() string
- type GetProductListReplyValidationError
- func (e GetProductListReplyValidationError) Cause() error
- func (e GetProductListReplyValidationError) Error() string
- func (e GetProductListReplyValidationError) ErrorName() string
- func (e GetProductListReplyValidationError) Field() string
- func (e GetProductListReplyValidationError) Key() bool
- func (e GetProductListReplyValidationError) Reason() string
- type GetProductListReq
- func (*GetProductListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductListReq) GetEndCreateTime() int64
- func (x *GetProductListReq) GetPage() int64
- func (x *GetProductListReq) GetPageSize() int64
- func (x *GetProductListReq) GetStartCreateTime() int64
- func (*GetProductListReq) ProtoMessage()
- func (x *GetProductListReq) ProtoReflect() protoreflect.Message
- func (x *GetProductListReq) Reset()
- func (x *GetProductListReq) String() string
- func (m *GetProductListReq) Validate() error
- type GetProductListReqValidationError
- func (e GetProductListReqValidationError) Cause() error
- func (e GetProductListReqValidationError) Error() string
- func (e GetProductListReqValidationError) ErrorName() string
- func (e GetProductListReqValidationError) Field() string
- func (e GetProductListReqValidationError) Key() bool
- func (e GetProductListReqValidationError) Reason() string
- type ListingProductReply
- func (*ListingProductReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListingProductReply) GetCode() Code
- func (x *ListingProductReply) GetData() *ListingProductReplyProduct
- func (x *ListingProductReply) GetMsg() string
- func (*ListingProductReply) ProtoMessage()
- func (x *ListingProductReply) ProtoReflect() protoreflect.Message
- func (x *ListingProductReply) Reset()
- func (x *ListingProductReply) String() string
- func (m *ListingProductReply) Validate() error
- type ListingProductReplyProduct
- func (*ListingProductReplyProduct) Descriptor() ([]byte, []int)deprecated
- func (x *ListingProductReplyProduct) GetIds() []int64
- func (*ListingProductReplyProduct) ProtoMessage()
- func (x *ListingProductReplyProduct) ProtoReflect() protoreflect.Message
- func (x *ListingProductReplyProduct) Reset()
- func (x *ListingProductReplyProduct) String() string
- func (m *ListingProductReplyProduct) Validate() error
- type ListingProductReplyProductValidationError
- func (e ListingProductReplyProductValidationError) Cause() error
- func (e ListingProductReplyProductValidationError) Error() string
- func (e ListingProductReplyProductValidationError) ErrorName() string
- func (e ListingProductReplyProductValidationError) Field() string
- func (e ListingProductReplyProductValidationError) Key() bool
- func (e ListingProductReplyProductValidationError) Reason() string
- type ListingProductReplyValidationError
- func (e ListingProductReplyValidationError) Cause() error
- func (e ListingProductReplyValidationError) Error() string
- func (e ListingProductReplyValidationError) ErrorName() string
- func (e ListingProductReplyValidationError) Field() string
- func (e ListingProductReplyValidationError) Key() bool
- func (e ListingProductReplyValidationError) Reason() string
- type ListingProductReq
- func (*ListingProductReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListingProductReq) GetIds() []int64
- func (*ListingProductReq) ProtoMessage()
- func (x *ListingProductReq) ProtoReflect() protoreflect.Message
- func (x *ListingProductReq) Reset()
- func (x *ListingProductReq) String() string
- func (m *ListingProductReq) Validate() error
- type ListingProductReqValidationError
- func (e ListingProductReqValidationError) Cause() error
- func (e ListingProductReqValidationError) Error() string
- func (e ListingProductReqValidationError) ErrorName() string
- func (e ListingProductReqValidationError) Field() string
- func (e ListingProductReqValidationError) Key() bool
- func (e ListingProductReqValidationError) Reason() string
- type ProductClient
- type ProductEntity
- func (*ProductEntity) Descriptor() ([]byte, []int)deprecated
- func (x *ProductEntity) GetCreatedAt() int64
- func (x *ProductEntity) GetDescription() string
- func (x *ProductEntity) GetId() int64
- func (x *ProductEntity) GetImage() string
- func (x *ProductEntity) GetOnSale() uint32
- func (x *ProductEntity) GetPrice() uint32
- func (x *ProductEntity) GetReviewCount() uint32
- func (x *ProductEntity) GetSkus() []*ProductSku
- func (x *ProductEntity) GetSoldCount() uint32
- func (x *ProductEntity) GetTitle() string
- func (x *ProductEntity) GetUpdatedAt() int64
- func (*ProductEntity) ProtoMessage()
- func (x *ProductEntity) ProtoReflect() protoreflect.Message
- func (x *ProductEntity) Reset()
- func (x *ProductEntity) String() string
- func (m *ProductEntity) Validate() error
- type ProductEntityValidationError
- func (e ProductEntityValidationError) Cause() error
- func (e ProductEntityValidationError) Error() string
- func (e ProductEntityValidationError) ErrorName() string
- func (e ProductEntityValidationError) Field() string
- func (e ProductEntityValidationError) Key() bool
- func (e ProductEntityValidationError) Reason() string
- type ProductServer
- type ProductSku
- func (*ProductSku) Descriptor() ([]byte, []int)deprecated
- func (x *ProductSku) GetCreatedAt() int64
- func (x *ProductSku) GetId() uint64
- func (x *ProductSku) GetPrice() uint32
- func (x *ProductSku) GetProductId() uint64
- func (x *ProductSku) GetStock() uint32
- func (x *ProductSku) GetTitle() string
- func (*ProductSku) ProtoMessage()
- func (x *ProductSku) ProtoReflect() protoreflect.Message
- func (x *ProductSku) Reset()
- func (x *ProductSku) String() string
- func (m *ProductSku) Validate() error
- type ProductSkuValidationError
- type UnimplementedProductServer
- func (UnimplementedProductServer) CreateProduct(context.Context, *CreateProductReq) (*CreateProductReply, error)
- func (UnimplementedProductServer) DeListingProduct(context.Context, *DeListingProductReq) (*DeListingProductReply, error)
- func (UnimplementedProductServer) DeleteProduct(context.Context, *DeleteProductReq) (*DeleteProductReply, error)
- func (UnimplementedProductServer) GetProductList(context.Context, *GetProductListReq) (*GetProductListReply, error)
- func (UnimplementedProductServer) ListingProduct(context.Context, *ListingProductReq) (*ListingProductReply, error)
- func (UnimplementedProductServer) UpdateProduct(context.Context, *UpdateProductReq) (*UpdateProductReply, error)
- type UnsafeProductServer
- type UpdateProductReply
- func (*UpdateProductReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProductReply) GetCode() Code
- func (x *UpdateProductReply) GetMsg() string
- func (*UpdateProductReply) ProtoMessage()
- func (x *UpdateProductReply) ProtoReflect() protoreflect.Message
- func (x *UpdateProductReply) Reset()
- func (x *UpdateProductReply) String() string
- func (m *UpdateProductReply) Validate() error
- type UpdateProductReplyValidationError
- func (e UpdateProductReplyValidationError) Cause() error
- func (e UpdateProductReplyValidationError) Error() string
- func (e UpdateProductReplyValidationError) ErrorName() string
- func (e UpdateProductReplyValidationError) Field() string
- func (e UpdateProductReplyValidationError) Key() bool
- func (e UpdateProductReplyValidationError) Reason() string
- type UpdateProductReq
- func (*UpdateProductReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProductReq) GetId() int64
- func (x *UpdateProductReq) GetProduct() *ProductEntity
- func (*UpdateProductReq) ProtoMessage()
- func (x *UpdateProductReq) ProtoReflect() protoreflect.Message
- func (x *UpdateProductReq) Reset()
- func (x *UpdateProductReq) String() string
- func (m *UpdateProductReq) Validate() error
- type UpdateProductReqValidationError
- func (e UpdateProductReqValidationError) Cause() error
- func (e UpdateProductReqValidationError) Error() string
- func (e UpdateProductReqValidationError) ErrorName() string
- func (e UpdateProductReqValidationError) Field() string
- func (e UpdateProductReqValidationError) Key() bool
- func (e UpdateProductReqValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( Code_name = map[int32]string{ 0: "NOKnow", 200: "Success", 10000: "GetProductErr", 10001: "CreateProductErr", 10002: "UpdateProductErr", 10003: "DeleteProductErr", 10004: "ListingProductErr", 10005: "DeListingProductErr", } Code_value = map[string]int32{ "NOKnow": 0, "Success": 200, "GetProductErr": 10000, "CreateProductErr": 10001, "UpdateProductErr": 10002, "DeleteProductErr": 10003, "ListingProductErr": 10004, "DeListingProductErr": 10005, } )
Enum value maps for Code.
var File_product_proto protoreflect.FileDescriptor
var Product_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Product", HandlerType: (*ProductServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetProductList", Handler: _Product_GetProductList_Handler, }, { MethodName: "CreateProduct", Handler: _Product_CreateProduct_Handler, }, { MethodName: "UpdateProduct", Handler: _Product_UpdateProduct_Handler, }, { MethodName: "DeleteProduct", Handler: _Product_DeleteProduct_Handler, }, { MethodName: "ListingProduct", Handler: _Product_ListingProduct_Handler, }, { MethodName: "DeListingProduct", Handler: _Product_DeListingProduct_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "product.proto", }
Product_ServiceDesc is the grpc.ServiceDesc for Product service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProductServer ¶
func RegisterProductServer(s grpc.ServiceRegistrar, srv ProductServer)
Types ¶
type Code ¶
type Code int32
func (Code) Descriptor ¶
func (Code) Descriptor() protoreflect.EnumDescriptor
func (Code) EnumDescriptor
deprecated
func (Code) Number ¶
func (x Code) Number() protoreflect.EnumNumber
func (Code) Type ¶
func (Code) Type() protoreflect.EnumType
type CreateProductReply ¶
type CreateProductReply struct { Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=Code" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *CreateProductReplyProduct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateProductReply) Descriptor
deprecated
func (*CreateProductReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateProductReply.ProtoReflect.Descriptor instead.
func (*CreateProductReply) GetCode ¶
func (x *CreateProductReply) GetCode() Code
func (*CreateProductReply) GetData ¶
func (x *CreateProductReply) GetData() *CreateProductReplyProduct
func (*CreateProductReply) GetMsg ¶
func (x *CreateProductReply) GetMsg() string
func (*CreateProductReply) ProtoMessage ¶
func (*CreateProductReply) ProtoMessage()
func (*CreateProductReply) ProtoReflect ¶
func (x *CreateProductReply) ProtoReflect() protoreflect.Message
func (*CreateProductReply) Reset ¶
func (x *CreateProductReply) Reset()
func (*CreateProductReply) String ¶
func (x *CreateProductReply) String() string
func (*CreateProductReply) Validate ¶
func (m *CreateProductReply) Validate() error
Validate checks the field values on CreateProductReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateProductReplyProduct ¶
type CreateProductReplyProduct struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateProductReplyProduct) Descriptor
deprecated
func (*CreateProductReplyProduct) Descriptor() ([]byte, []int)
Deprecated: Use CreateProductReplyProduct.ProtoReflect.Descriptor instead.
func (*CreateProductReplyProduct) GetId ¶
func (x *CreateProductReplyProduct) GetId() int64
func (*CreateProductReplyProduct) ProtoMessage ¶
func (*CreateProductReplyProduct) ProtoMessage()
func (*CreateProductReplyProduct) ProtoReflect ¶
func (x *CreateProductReplyProduct) ProtoReflect() protoreflect.Message
func (*CreateProductReplyProduct) Reset ¶
func (x *CreateProductReplyProduct) Reset()
func (*CreateProductReplyProduct) String ¶
func (x *CreateProductReplyProduct) String() string
func (*CreateProductReplyProduct) Validate ¶
func (m *CreateProductReplyProduct) Validate() error
Validate checks the field values on CreateProductReplyProduct with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateProductReplyProductValidationError ¶
type CreateProductReplyProductValidationError struct {
// contains filtered or unexported fields
}
CreateProductReplyProductValidationError is the validation error returned by CreateProductReplyProduct.Validate if the designated constraints aren't met.
func (CreateProductReplyProductValidationError) Cause ¶
func (e CreateProductReplyProductValidationError) Cause() error
Cause function returns cause value.
func (CreateProductReplyProductValidationError) Error ¶
func (e CreateProductReplyProductValidationError) Error() string
Error satisfies the builtin error interface
func (CreateProductReplyProductValidationError) ErrorName ¶
func (e CreateProductReplyProductValidationError) ErrorName() string
ErrorName returns error name.
func (CreateProductReplyProductValidationError) Field ¶
func (e CreateProductReplyProductValidationError) Field() string
Field function returns field value.
func (CreateProductReplyProductValidationError) Key ¶
func (e CreateProductReplyProductValidationError) Key() bool
Key function returns key value.
func (CreateProductReplyProductValidationError) Reason ¶
func (e CreateProductReplyProductValidationError) Reason() string
Reason function returns reason value.
type CreateProductReplyValidationError ¶
type CreateProductReplyValidationError struct {
// contains filtered or unexported fields
}
CreateProductReplyValidationError is the validation error returned by CreateProductReply.Validate if the designated constraints aren't met.
func (CreateProductReplyValidationError) Cause ¶
func (e CreateProductReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateProductReplyValidationError) Error ¶
func (e CreateProductReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateProductReplyValidationError) ErrorName ¶
func (e CreateProductReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateProductReplyValidationError) Field ¶
func (e CreateProductReplyValidationError) Field() string
Field function returns field value.
func (CreateProductReplyValidationError) Key ¶
func (e CreateProductReplyValidationError) Key() bool
Key function returns key value.
func (CreateProductReplyValidationError) Reason ¶
func (e CreateProductReplyValidationError) Reason() string
Reason function returns reason value.
type CreateProductReq ¶
type CreateProductReq struct { Product *ProductEntity `protobuf:"bytes,1,opt,name=product,proto3" json:"product,omitempty"` // contains filtered or unexported fields }
func (*CreateProductReq) Descriptor
deprecated
func (*CreateProductReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateProductReq.ProtoReflect.Descriptor instead.
func (*CreateProductReq) GetProduct ¶
func (x *CreateProductReq) GetProduct() *ProductEntity
func (*CreateProductReq) ProtoMessage ¶
func (*CreateProductReq) ProtoMessage()
func (*CreateProductReq) ProtoReflect ¶
func (x *CreateProductReq) ProtoReflect() protoreflect.Message
func (*CreateProductReq) Reset ¶
func (x *CreateProductReq) Reset()
func (*CreateProductReq) String ¶
func (x *CreateProductReq) String() string
func (*CreateProductReq) Validate ¶
func (m *CreateProductReq) Validate() error
Validate checks the field values on CreateProductReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type CreateProductReqValidationError ¶
type CreateProductReqValidationError struct {
// contains filtered or unexported fields
}
CreateProductReqValidationError is the validation error returned by CreateProductReq.Validate if the designated constraints aren't met.
func (CreateProductReqValidationError) Cause ¶
func (e CreateProductReqValidationError) Cause() error
Cause function returns cause value.
func (CreateProductReqValidationError) Error ¶
func (e CreateProductReqValidationError) Error() string
Error satisfies the builtin error interface
func (CreateProductReqValidationError) ErrorName ¶
func (e CreateProductReqValidationError) ErrorName() string
ErrorName returns error name.
func (CreateProductReqValidationError) Field ¶
func (e CreateProductReqValidationError) Field() string
Field function returns field value.
func (CreateProductReqValidationError) Key ¶
func (e CreateProductReqValidationError) Key() bool
Key function returns key value.
func (CreateProductReqValidationError) Reason ¶
func (e CreateProductReqValidationError) Reason() string
Reason function returns reason value.
type DeListingProductReply ¶
type DeListingProductReply struct { Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=Code" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *DeListingProductReplyProduct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DeListingProductReply) Descriptor
deprecated
func (*DeListingProductReply) Descriptor() ([]byte, []int)
Deprecated: Use DeListingProductReply.ProtoReflect.Descriptor instead.
func (*DeListingProductReply) GetCode ¶
func (x *DeListingProductReply) GetCode() Code
func (*DeListingProductReply) GetData ¶
func (x *DeListingProductReply) GetData() *DeListingProductReplyProduct
func (*DeListingProductReply) GetMsg ¶
func (x *DeListingProductReply) GetMsg() string
func (*DeListingProductReply) ProtoMessage ¶
func (*DeListingProductReply) ProtoMessage()
func (*DeListingProductReply) ProtoReflect ¶
func (x *DeListingProductReply) ProtoReflect() protoreflect.Message
func (*DeListingProductReply) Reset ¶
func (x *DeListingProductReply) Reset()
func (*DeListingProductReply) String ¶
func (x *DeListingProductReply) String() string
func (*DeListingProductReply) Validate ¶
func (m *DeListingProductReply) Validate() error
Validate checks the field values on DeListingProductReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeListingProductReplyProduct ¶
type DeListingProductReplyProduct struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeListingProductReplyProduct) Descriptor
deprecated
func (*DeListingProductReplyProduct) Descriptor() ([]byte, []int)
Deprecated: Use DeListingProductReplyProduct.ProtoReflect.Descriptor instead.
func (*DeListingProductReplyProduct) GetIds ¶
func (x *DeListingProductReplyProduct) GetIds() []int64
func (*DeListingProductReplyProduct) ProtoMessage ¶
func (*DeListingProductReplyProduct) ProtoMessage()
func (*DeListingProductReplyProduct) ProtoReflect ¶
func (x *DeListingProductReplyProduct) ProtoReflect() protoreflect.Message
func (*DeListingProductReplyProduct) Reset ¶
func (x *DeListingProductReplyProduct) Reset()
func (*DeListingProductReplyProduct) String ¶
func (x *DeListingProductReplyProduct) String() string
func (*DeListingProductReplyProduct) Validate ¶
func (m *DeListingProductReplyProduct) Validate() error
Validate checks the field values on DeListingProductReplyProduct with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeListingProductReplyProductValidationError ¶
type DeListingProductReplyProductValidationError struct {
// contains filtered or unexported fields
}
DeListingProductReplyProductValidationError is the validation error returned by DeListingProductReplyProduct.Validate if the designated constraints aren't met.
func (DeListingProductReplyProductValidationError) Cause ¶
func (e DeListingProductReplyProductValidationError) Cause() error
Cause function returns cause value.
func (DeListingProductReplyProductValidationError) Error ¶
func (e DeListingProductReplyProductValidationError) Error() string
Error satisfies the builtin error interface
func (DeListingProductReplyProductValidationError) ErrorName ¶
func (e DeListingProductReplyProductValidationError) ErrorName() string
ErrorName returns error name.
func (DeListingProductReplyProductValidationError) Field ¶
func (e DeListingProductReplyProductValidationError) Field() string
Field function returns field value.
func (DeListingProductReplyProductValidationError) Key ¶
func (e DeListingProductReplyProductValidationError) Key() bool
Key function returns key value.
func (DeListingProductReplyProductValidationError) Reason ¶
func (e DeListingProductReplyProductValidationError) Reason() string
Reason function returns reason value.
type DeListingProductReplyValidationError ¶
type DeListingProductReplyValidationError struct {
// contains filtered or unexported fields
}
DeListingProductReplyValidationError is the validation error returned by DeListingProductReply.Validate if the designated constraints aren't met.
func (DeListingProductReplyValidationError) Cause ¶
func (e DeListingProductReplyValidationError) Cause() error
Cause function returns cause value.
func (DeListingProductReplyValidationError) Error ¶
func (e DeListingProductReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeListingProductReplyValidationError) ErrorName ¶
func (e DeListingProductReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeListingProductReplyValidationError) Field ¶
func (e DeListingProductReplyValidationError) Field() string
Field function returns field value.
func (DeListingProductReplyValidationError) Key ¶
func (e DeListingProductReplyValidationError) Key() bool
Key function returns key value.
func (DeListingProductReplyValidationError) Reason ¶
func (e DeListingProductReplyValidationError) Reason() string
Reason function returns reason value.
type DeListingProductReq ¶
type DeListingProductReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeListingProductReq) Descriptor
deprecated
func (*DeListingProductReq) Descriptor() ([]byte, []int)
Deprecated: Use DeListingProductReq.ProtoReflect.Descriptor instead.
func (*DeListingProductReq) GetIds ¶
func (x *DeListingProductReq) GetIds() []int64
func (*DeListingProductReq) ProtoMessage ¶
func (*DeListingProductReq) ProtoMessage()
func (*DeListingProductReq) ProtoReflect ¶
func (x *DeListingProductReq) ProtoReflect() protoreflect.Message
func (*DeListingProductReq) Reset ¶
func (x *DeListingProductReq) Reset()
func (*DeListingProductReq) String ¶
func (x *DeListingProductReq) String() string
func (*DeListingProductReq) Validate ¶
func (m *DeListingProductReq) Validate() error
Validate checks the field values on DeListingProductReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeListingProductReqValidationError ¶
type DeListingProductReqValidationError struct {
// contains filtered or unexported fields
}
DeListingProductReqValidationError is the validation error returned by DeListingProductReq.Validate if the designated constraints aren't met.
func (DeListingProductReqValidationError) Cause ¶
func (e DeListingProductReqValidationError) Cause() error
Cause function returns cause value.
func (DeListingProductReqValidationError) Error ¶
func (e DeListingProductReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeListingProductReqValidationError) ErrorName ¶
func (e DeListingProductReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeListingProductReqValidationError) Field ¶
func (e DeListingProductReqValidationError) Field() string
Field function returns field value.
func (DeListingProductReqValidationError) Key ¶
func (e DeListingProductReqValidationError) Key() bool
Key function returns key value.
func (DeListingProductReqValidationError) Reason ¶
func (e DeListingProductReqValidationError) Reason() string
Reason function returns reason value.
type DeleteProductReply ¶
type DeleteProductReply struct { Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=Code" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *DeleteProductReplyProduct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*DeleteProductReply) Descriptor
deprecated
func (*DeleteProductReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductReply.ProtoReflect.Descriptor instead.
func (*DeleteProductReply) GetCode ¶
func (x *DeleteProductReply) GetCode() Code
func (*DeleteProductReply) GetData ¶
func (x *DeleteProductReply) GetData() *DeleteProductReplyProduct
func (*DeleteProductReply) GetMsg ¶
func (x *DeleteProductReply) GetMsg() string
func (*DeleteProductReply) ProtoMessage ¶
func (*DeleteProductReply) ProtoMessage()
func (*DeleteProductReply) ProtoReflect ¶
func (x *DeleteProductReply) ProtoReflect() protoreflect.Message
func (*DeleteProductReply) Reset ¶
func (x *DeleteProductReply) Reset()
func (*DeleteProductReply) String ¶
func (x *DeleteProductReply) String() string
func (*DeleteProductReply) Validate ¶
func (m *DeleteProductReply) Validate() error
Validate checks the field values on DeleteProductReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteProductReplyProduct ¶
type DeleteProductReplyProduct struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteProductReplyProduct) Descriptor
deprecated
func (*DeleteProductReplyProduct) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductReplyProduct.ProtoReflect.Descriptor instead.
func (*DeleteProductReplyProduct) GetIds ¶
func (x *DeleteProductReplyProduct) GetIds() []int64
func (*DeleteProductReplyProduct) ProtoMessage ¶
func (*DeleteProductReplyProduct) ProtoMessage()
func (*DeleteProductReplyProduct) ProtoReflect ¶
func (x *DeleteProductReplyProduct) ProtoReflect() protoreflect.Message
func (*DeleteProductReplyProduct) Reset ¶
func (x *DeleteProductReplyProduct) Reset()
func (*DeleteProductReplyProduct) String ¶
func (x *DeleteProductReplyProduct) String() string
func (*DeleteProductReplyProduct) Validate ¶
func (m *DeleteProductReplyProduct) Validate() error
Validate checks the field values on DeleteProductReplyProduct with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteProductReplyProductValidationError ¶
type DeleteProductReplyProductValidationError struct {
// contains filtered or unexported fields
}
DeleteProductReplyProductValidationError is the validation error returned by DeleteProductReplyProduct.Validate if the designated constraints aren't met.
func (DeleteProductReplyProductValidationError) Cause ¶
func (e DeleteProductReplyProductValidationError) Cause() error
Cause function returns cause value.
func (DeleteProductReplyProductValidationError) Error ¶
func (e DeleteProductReplyProductValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteProductReplyProductValidationError) ErrorName ¶
func (e DeleteProductReplyProductValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteProductReplyProductValidationError) Field ¶
func (e DeleteProductReplyProductValidationError) Field() string
Field function returns field value.
func (DeleteProductReplyProductValidationError) Key ¶
func (e DeleteProductReplyProductValidationError) Key() bool
Key function returns key value.
func (DeleteProductReplyProductValidationError) Reason ¶
func (e DeleteProductReplyProductValidationError) Reason() string
Reason function returns reason value.
type DeleteProductReplyValidationError ¶
type DeleteProductReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteProductReplyValidationError is the validation error returned by DeleteProductReply.Validate if the designated constraints aren't met.
func (DeleteProductReplyValidationError) Cause ¶
func (e DeleteProductReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteProductReplyValidationError) Error ¶
func (e DeleteProductReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteProductReplyValidationError) ErrorName ¶
func (e DeleteProductReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteProductReplyValidationError) Field ¶
func (e DeleteProductReplyValidationError) Field() string
Field function returns field value.
func (DeleteProductReplyValidationError) Key ¶
func (e DeleteProductReplyValidationError) Key() bool
Key function returns key value.
func (DeleteProductReplyValidationError) Reason ¶
func (e DeleteProductReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteProductReq ¶
type DeleteProductReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*DeleteProductReq) Descriptor
deprecated
func (*DeleteProductReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProductReq.ProtoReflect.Descriptor instead.
func (*DeleteProductReq) GetIds ¶
func (x *DeleteProductReq) GetIds() []int64
func (*DeleteProductReq) ProtoMessage ¶
func (*DeleteProductReq) ProtoMessage()
func (*DeleteProductReq) ProtoReflect ¶
func (x *DeleteProductReq) ProtoReflect() protoreflect.Message
func (*DeleteProductReq) Reset ¶
func (x *DeleteProductReq) Reset()
func (*DeleteProductReq) String ¶
func (x *DeleteProductReq) String() string
func (*DeleteProductReq) Validate ¶
func (m *DeleteProductReq) Validate() error
Validate checks the field values on DeleteProductReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type DeleteProductReqValidationError ¶
type DeleteProductReqValidationError struct {
// contains filtered or unexported fields
}
DeleteProductReqValidationError is the validation error returned by DeleteProductReq.Validate if the designated constraints aren't met.
func (DeleteProductReqValidationError) Cause ¶
func (e DeleteProductReqValidationError) Cause() error
Cause function returns cause value.
func (DeleteProductReqValidationError) Error ¶
func (e DeleteProductReqValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteProductReqValidationError) ErrorName ¶
func (e DeleteProductReqValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteProductReqValidationError) Field ¶
func (e DeleteProductReqValidationError) Field() string
Field function returns field value.
func (DeleteProductReqValidationError) Key ¶
func (e DeleteProductReqValidationError) Key() bool
Key function returns key value.
func (DeleteProductReqValidationError) Reason ¶
func (e DeleteProductReqValidationError) Reason() string
Reason function returns reason value.
type GetProductListReply ¶
type GetProductListReply struct { Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=Code" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *GetProductListReplyProduct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetProductListReply) Descriptor
deprecated
func (*GetProductListReply) Descriptor() ([]byte, []int)
Deprecated: Use GetProductListReply.ProtoReflect.Descriptor instead.
func (*GetProductListReply) GetCode ¶
func (x *GetProductListReply) GetCode() Code
func (*GetProductListReply) GetData ¶
func (x *GetProductListReply) GetData() *GetProductListReplyProduct
func (*GetProductListReply) GetMsg ¶
func (x *GetProductListReply) GetMsg() string
func (*GetProductListReply) ProtoMessage ¶
func (*GetProductListReply) ProtoMessage()
func (*GetProductListReply) ProtoReflect ¶
func (x *GetProductListReply) ProtoReflect() protoreflect.Message
func (*GetProductListReply) Reset ¶
func (x *GetProductListReply) Reset()
func (*GetProductListReply) String ¶
func (x *GetProductListReply) String() string
func (*GetProductListReply) Validate ¶
func (m *GetProductListReply) Validate() error
Validate checks the field values on GetProductListReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetProductListReplyProduct ¶
type GetProductListReplyProduct struct { ProductList []*ProductEntity `protobuf:"bytes,1,rep,name=productList,proto3" json:"productList,omitempty"` TotalPage int64 `protobuf:"varint,2,opt,name=total_page,json=totalPage,proto3" json:"total_page,omitempty"` Page int64 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Total int64 `protobuf:"varint,5,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*GetProductListReplyProduct) Descriptor
deprecated
func (*GetProductListReplyProduct) Descriptor() ([]byte, []int)
Deprecated: Use GetProductListReplyProduct.ProtoReflect.Descriptor instead.
func (*GetProductListReplyProduct) GetPage ¶
func (x *GetProductListReplyProduct) GetPage() int64
func (*GetProductListReplyProduct) GetPageSize ¶
func (x *GetProductListReplyProduct) GetPageSize() int64
func (*GetProductListReplyProduct) GetProductList ¶
func (x *GetProductListReplyProduct) GetProductList() []*ProductEntity
func (*GetProductListReplyProduct) GetTotal ¶
func (x *GetProductListReplyProduct) GetTotal() int64
func (*GetProductListReplyProduct) GetTotalPage ¶
func (x *GetProductListReplyProduct) GetTotalPage() int64
func (*GetProductListReplyProduct) ProtoMessage ¶
func (*GetProductListReplyProduct) ProtoMessage()
func (*GetProductListReplyProduct) ProtoReflect ¶
func (x *GetProductListReplyProduct) ProtoReflect() protoreflect.Message
func (*GetProductListReplyProduct) Reset ¶
func (x *GetProductListReplyProduct) Reset()
func (*GetProductListReplyProduct) String ¶
func (x *GetProductListReplyProduct) String() string
func (*GetProductListReplyProduct) Validate ¶
func (m *GetProductListReplyProduct) Validate() error
Validate checks the field values on GetProductListReplyProduct with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetProductListReplyProductValidationError ¶
type GetProductListReplyProductValidationError struct {
// contains filtered or unexported fields
}
GetProductListReplyProductValidationError is the validation error returned by GetProductListReplyProduct.Validate if the designated constraints aren't met.
func (GetProductListReplyProductValidationError) Cause ¶
func (e GetProductListReplyProductValidationError) Cause() error
Cause function returns cause value.
func (GetProductListReplyProductValidationError) Error ¶
func (e GetProductListReplyProductValidationError) Error() string
Error satisfies the builtin error interface
func (GetProductListReplyProductValidationError) ErrorName ¶
func (e GetProductListReplyProductValidationError) ErrorName() string
ErrorName returns error name.
func (GetProductListReplyProductValidationError) Field ¶
func (e GetProductListReplyProductValidationError) Field() string
Field function returns field value.
func (GetProductListReplyProductValidationError) Key ¶
func (e GetProductListReplyProductValidationError) Key() bool
Key function returns key value.
func (GetProductListReplyProductValidationError) Reason ¶
func (e GetProductListReplyProductValidationError) Reason() string
Reason function returns reason value.
type GetProductListReplyValidationError ¶
type GetProductListReplyValidationError struct {
// contains filtered or unexported fields
}
GetProductListReplyValidationError is the validation error returned by GetProductListReply.Validate if the designated constraints aren't met.
func (GetProductListReplyValidationError) Cause ¶
func (e GetProductListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetProductListReplyValidationError) Error ¶
func (e GetProductListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetProductListReplyValidationError) ErrorName ¶
func (e GetProductListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetProductListReplyValidationError) Field ¶
func (e GetProductListReplyValidationError) Field() string
Field function returns field value.
func (GetProductListReplyValidationError) Key ¶
func (e GetProductListReplyValidationError) Key() bool
Key function returns key value.
func (GetProductListReplyValidationError) Reason ¶
func (e GetProductListReplyValidationError) Reason() string
Reason function returns reason value.
type GetProductListReq ¶
type GetProductListReq struct { StartCreateTime int64 `protobuf:"varint,1,opt,name=start_create_time,json=startCreateTime,proto3" json:"start_create_time,omitempty"` EndCreateTime int64 `protobuf:"varint,2,opt,name=end_create_time,json=endCreateTime,proto3" json:"end_create_time,omitempty"` PageSize int64 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Page int64 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"` // contains filtered or unexported fields }
func (*GetProductListReq) Descriptor
deprecated
func (*GetProductListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetProductListReq.ProtoReflect.Descriptor instead.
func (*GetProductListReq) GetEndCreateTime ¶
func (x *GetProductListReq) GetEndCreateTime() int64
func (*GetProductListReq) GetPage ¶
func (x *GetProductListReq) GetPage() int64
func (*GetProductListReq) GetPageSize ¶
func (x *GetProductListReq) GetPageSize() int64
func (*GetProductListReq) GetStartCreateTime ¶
func (x *GetProductListReq) GetStartCreateTime() int64
func (*GetProductListReq) ProtoMessage ¶
func (*GetProductListReq) ProtoMessage()
func (*GetProductListReq) ProtoReflect ¶
func (x *GetProductListReq) ProtoReflect() protoreflect.Message
func (*GetProductListReq) Reset ¶
func (x *GetProductListReq) Reset()
func (*GetProductListReq) String ¶
func (x *GetProductListReq) String() string
func (*GetProductListReq) Validate ¶
func (m *GetProductListReq) Validate() error
Validate checks the field values on GetProductListReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetProductListReqValidationError ¶
type GetProductListReqValidationError struct {
// contains filtered or unexported fields
}
GetProductListReqValidationError is the validation error returned by GetProductListReq.Validate if the designated constraints aren't met.
func (GetProductListReqValidationError) Cause ¶
func (e GetProductListReqValidationError) Cause() error
Cause function returns cause value.
func (GetProductListReqValidationError) Error ¶
func (e GetProductListReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetProductListReqValidationError) ErrorName ¶
func (e GetProductListReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetProductListReqValidationError) Field ¶
func (e GetProductListReqValidationError) Field() string
Field function returns field value.
func (GetProductListReqValidationError) Key ¶
func (e GetProductListReqValidationError) Key() bool
Key function returns key value.
func (GetProductListReqValidationError) Reason ¶
func (e GetProductListReqValidationError) Reason() string
Reason function returns reason value.
type ListingProductReply ¶
type ListingProductReply struct { Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=Code" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Data *ListingProductReplyProduct `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListingProductReply) Descriptor
deprecated
func (*ListingProductReply) Descriptor() ([]byte, []int)
Deprecated: Use ListingProductReply.ProtoReflect.Descriptor instead.
func (*ListingProductReply) GetCode ¶
func (x *ListingProductReply) GetCode() Code
func (*ListingProductReply) GetData ¶
func (x *ListingProductReply) GetData() *ListingProductReplyProduct
func (*ListingProductReply) GetMsg ¶
func (x *ListingProductReply) GetMsg() string
func (*ListingProductReply) ProtoMessage ¶
func (*ListingProductReply) ProtoMessage()
func (*ListingProductReply) ProtoReflect ¶
func (x *ListingProductReply) ProtoReflect() protoreflect.Message
func (*ListingProductReply) Reset ¶
func (x *ListingProductReply) Reset()
func (*ListingProductReply) String ¶
func (x *ListingProductReply) String() string
func (*ListingProductReply) Validate ¶
func (m *ListingProductReply) Validate() error
Validate checks the field values on ListingProductReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListingProductReplyProduct ¶
type ListingProductReplyProduct struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*ListingProductReplyProduct) Descriptor
deprecated
func (*ListingProductReplyProduct) Descriptor() ([]byte, []int)
Deprecated: Use ListingProductReplyProduct.ProtoReflect.Descriptor instead.
func (*ListingProductReplyProduct) GetIds ¶
func (x *ListingProductReplyProduct) GetIds() []int64
func (*ListingProductReplyProduct) ProtoMessage ¶
func (*ListingProductReplyProduct) ProtoMessage()
func (*ListingProductReplyProduct) ProtoReflect ¶
func (x *ListingProductReplyProduct) ProtoReflect() protoreflect.Message
func (*ListingProductReplyProduct) Reset ¶
func (x *ListingProductReplyProduct) Reset()
func (*ListingProductReplyProduct) String ¶
func (x *ListingProductReplyProduct) String() string
func (*ListingProductReplyProduct) Validate ¶
func (m *ListingProductReplyProduct) Validate() error
Validate checks the field values on ListingProductReplyProduct with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListingProductReplyProductValidationError ¶
type ListingProductReplyProductValidationError struct {
// contains filtered or unexported fields
}
ListingProductReplyProductValidationError is the validation error returned by ListingProductReplyProduct.Validate if the designated constraints aren't met.
func (ListingProductReplyProductValidationError) Cause ¶
func (e ListingProductReplyProductValidationError) Cause() error
Cause function returns cause value.
func (ListingProductReplyProductValidationError) Error ¶
func (e ListingProductReplyProductValidationError) Error() string
Error satisfies the builtin error interface
func (ListingProductReplyProductValidationError) ErrorName ¶
func (e ListingProductReplyProductValidationError) ErrorName() string
ErrorName returns error name.
func (ListingProductReplyProductValidationError) Field ¶
func (e ListingProductReplyProductValidationError) Field() string
Field function returns field value.
func (ListingProductReplyProductValidationError) Key ¶
func (e ListingProductReplyProductValidationError) Key() bool
Key function returns key value.
func (ListingProductReplyProductValidationError) Reason ¶
func (e ListingProductReplyProductValidationError) Reason() string
Reason function returns reason value.
type ListingProductReplyValidationError ¶
type ListingProductReplyValidationError struct {
// contains filtered or unexported fields
}
ListingProductReplyValidationError is the validation error returned by ListingProductReply.Validate if the designated constraints aren't met.
func (ListingProductReplyValidationError) Cause ¶
func (e ListingProductReplyValidationError) Cause() error
Cause function returns cause value.
func (ListingProductReplyValidationError) Error ¶
func (e ListingProductReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListingProductReplyValidationError) ErrorName ¶
func (e ListingProductReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListingProductReplyValidationError) Field ¶
func (e ListingProductReplyValidationError) Field() string
Field function returns field value.
func (ListingProductReplyValidationError) Key ¶
func (e ListingProductReplyValidationError) Key() bool
Key function returns key value.
func (ListingProductReplyValidationError) Reason ¶
func (e ListingProductReplyValidationError) Reason() string
Reason function returns reason value.
type ListingProductReq ¶
type ListingProductReq struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*ListingProductReq) Descriptor
deprecated
func (*ListingProductReq) Descriptor() ([]byte, []int)
Deprecated: Use ListingProductReq.ProtoReflect.Descriptor instead.
func (*ListingProductReq) GetIds ¶
func (x *ListingProductReq) GetIds() []int64
func (*ListingProductReq) ProtoMessage ¶
func (*ListingProductReq) ProtoMessage()
func (*ListingProductReq) ProtoReflect ¶
func (x *ListingProductReq) ProtoReflect() protoreflect.Message
func (*ListingProductReq) Reset ¶
func (x *ListingProductReq) Reset()
func (*ListingProductReq) String ¶
func (x *ListingProductReq) String() string
func (*ListingProductReq) Validate ¶
func (m *ListingProductReq) Validate() error
Validate checks the field values on ListingProductReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ListingProductReqValidationError ¶
type ListingProductReqValidationError struct {
// contains filtered or unexported fields
}
ListingProductReqValidationError is the validation error returned by ListingProductReq.Validate if the designated constraints aren't met.
func (ListingProductReqValidationError) Cause ¶
func (e ListingProductReqValidationError) Cause() error
Cause function returns cause value.
func (ListingProductReqValidationError) Error ¶
func (e ListingProductReqValidationError) Error() string
Error satisfies the builtin error interface
func (ListingProductReqValidationError) ErrorName ¶
func (e ListingProductReqValidationError) ErrorName() string
ErrorName returns error name.
func (ListingProductReqValidationError) Field ¶
func (e ListingProductReqValidationError) Field() string
Field function returns field value.
func (ListingProductReqValidationError) Key ¶
func (e ListingProductReqValidationError) Key() bool
Key function returns key value.
func (ListingProductReqValidationError) Reason ¶
func (e ListingProductReqValidationError) Reason() string
Reason function returns reason value.
type ProductClient ¶
type ProductClient interface { GetProductList(ctx context.Context, in *GetProductListReq, opts ...grpc.CallOption) (*GetProductListReply, error) CreateProduct(ctx context.Context, in *CreateProductReq, opts ...grpc.CallOption) (*CreateProductReply, error) UpdateProduct(ctx context.Context, in *UpdateProductReq, opts ...grpc.CallOption) (*UpdateProductReply, error) DeleteProduct(ctx context.Context, in *DeleteProductReq, opts ...grpc.CallOption) (*DeleteProductReply, error) ListingProduct(ctx context.Context, in *ListingProductReq, opts ...grpc.CallOption) (*ListingProductReply, error) DeListingProduct(ctx context.Context, in *DeListingProductReq, opts ...grpc.CallOption) (*DeListingProductReply, error) }
ProductClient is the client API for Product 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 NewProductClient ¶
func NewProductClient(cc grpc.ClientConnInterface) ProductClient
type ProductEntity ¶
type ProductEntity struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` OnSale uint32 `protobuf:"varint,5,opt,name=on_sale,json=onSale,proto3" json:"on_sale,omitempty"` SoldCount uint32 `protobuf:"varint,6,opt,name=sold_count,json=soldCount,proto3" json:"sold_count,omitempty"` ReviewCount uint32 `protobuf:"varint,7,opt,name=review_count,json=reviewCount,proto3" json:"review_count,omitempty"` Price uint32 `protobuf:"varint,8,opt,name=price,proto3" json:"price,omitempty"` CreatedAt int64 `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt int64 `protobuf:"varint,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` Skus []*ProductSku `protobuf:"bytes,11,rep,name=skus,proto3" json:"skus,omitempty"` // contains filtered or unexported fields }
func (*ProductEntity) Descriptor
deprecated
func (*ProductEntity) Descriptor() ([]byte, []int)
Deprecated: Use ProductEntity.ProtoReflect.Descriptor instead.
func (*ProductEntity) GetCreatedAt ¶
func (x *ProductEntity) GetCreatedAt() int64
func (*ProductEntity) GetDescription ¶
func (x *ProductEntity) GetDescription() string
func (*ProductEntity) GetId ¶
func (x *ProductEntity) GetId() int64
func (*ProductEntity) GetImage ¶
func (x *ProductEntity) GetImage() string
func (*ProductEntity) GetOnSale ¶
func (x *ProductEntity) GetOnSale() uint32
func (*ProductEntity) GetPrice ¶
func (x *ProductEntity) GetPrice() uint32
func (*ProductEntity) GetReviewCount ¶
func (x *ProductEntity) GetReviewCount() uint32
func (*ProductEntity) GetSkus ¶
func (x *ProductEntity) GetSkus() []*ProductSku
func (*ProductEntity) GetSoldCount ¶
func (x *ProductEntity) GetSoldCount() uint32
func (*ProductEntity) GetTitle ¶
func (x *ProductEntity) GetTitle() string
func (*ProductEntity) GetUpdatedAt ¶
func (x *ProductEntity) GetUpdatedAt() int64
func (*ProductEntity) ProtoMessage ¶
func (*ProductEntity) ProtoMessage()
func (*ProductEntity) ProtoReflect ¶
func (x *ProductEntity) ProtoReflect() protoreflect.Message
func (*ProductEntity) Reset ¶
func (x *ProductEntity) Reset()
func (*ProductEntity) String ¶
func (x *ProductEntity) String() string
func (*ProductEntity) Validate ¶
func (m *ProductEntity) Validate() error
Validate checks the field values on ProductEntity with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ProductEntityValidationError ¶
type ProductEntityValidationError struct {
// contains filtered or unexported fields
}
ProductEntityValidationError is the validation error returned by ProductEntity.Validate if the designated constraints aren't met.
func (ProductEntityValidationError) Cause ¶
func (e ProductEntityValidationError) Cause() error
Cause function returns cause value.
func (ProductEntityValidationError) Error ¶
func (e ProductEntityValidationError) Error() string
Error satisfies the builtin error interface
func (ProductEntityValidationError) ErrorName ¶
func (e ProductEntityValidationError) ErrorName() string
ErrorName returns error name.
func (ProductEntityValidationError) Field ¶
func (e ProductEntityValidationError) Field() string
Field function returns field value.
func (ProductEntityValidationError) Key ¶
func (e ProductEntityValidationError) Key() bool
Key function returns key value.
func (ProductEntityValidationError) Reason ¶
func (e ProductEntityValidationError) Reason() string
Reason function returns reason value.
type ProductServer ¶
type ProductServer interface { GetProductList(context.Context, *GetProductListReq) (*GetProductListReply, error) CreateProduct(context.Context, *CreateProductReq) (*CreateProductReply, error) UpdateProduct(context.Context, *UpdateProductReq) (*UpdateProductReply, error) DeleteProduct(context.Context, *DeleteProductReq) (*DeleteProductReply, error) ListingProduct(context.Context, *ListingProductReq) (*ListingProductReply, error) DeListingProduct(context.Context, *DeListingProductReq) (*DeListingProductReply, error) // contains filtered or unexported methods }
ProductServer is the server API for Product service. All implementations must embed UnimplementedProductServer for forward compatibility
type ProductSku ¶
type ProductSku struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Price uint32 `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"` Stock uint32 `protobuf:"varint,5,opt,name=stock,proto3" json:"stock,omitempty"` ProductId uint64 `protobuf:"varint,6,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` CreatedAt int64 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*ProductSku) Descriptor
deprecated
func (*ProductSku) Descriptor() ([]byte, []int)
Deprecated: Use ProductSku.ProtoReflect.Descriptor instead.
func (*ProductSku) GetCreatedAt ¶
func (x *ProductSku) GetCreatedAt() int64
func (*ProductSku) GetId ¶
func (x *ProductSku) GetId() uint64
func (*ProductSku) GetPrice ¶
func (x *ProductSku) GetPrice() uint32
func (*ProductSku) GetProductId ¶
func (x *ProductSku) GetProductId() uint64
func (*ProductSku) GetStock ¶
func (x *ProductSku) GetStock() uint32
func (*ProductSku) GetTitle ¶
func (x *ProductSku) GetTitle() string
func (*ProductSku) ProtoMessage ¶
func (*ProductSku) ProtoMessage()
func (*ProductSku) ProtoReflect ¶
func (x *ProductSku) ProtoReflect() protoreflect.Message
func (*ProductSku) Reset ¶
func (x *ProductSku) Reset()
func (*ProductSku) String ¶
func (x *ProductSku) String() string
func (*ProductSku) Validate ¶
func (m *ProductSku) Validate() error
Validate checks the field values on ProductSku with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type ProductSkuValidationError ¶
type ProductSkuValidationError struct {
// contains filtered or unexported fields
}
ProductSkuValidationError is the validation error returned by ProductSku.Validate if the designated constraints aren't met.
func (ProductSkuValidationError) Cause ¶
func (e ProductSkuValidationError) Cause() error
Cause function returns cause value.
func (ProductSkuValidationError) Error ¶
func (e ProductSkuValidationError) Error() string
Error satisfies the builtin error interface
func (ProductSkuValidationError) ErrorName ¶
func (e ProductSkuValidationError) ErrorName() string
ErrorName returns error name.
func (ProductSkuValidationError) Field ¶
func (e ProductSkuValidationError) Field() string
Field function returns field value.
func (ProductSkuValidationError) Key ¶
func (e ProductSkuValidationError) Key() bool
Key function returns key value.
func (ProductSkuValidationError) Reason ¶
func (e ProductSkuValidationError) Reason() string
Reason function returns reason value.
type UnimplementedProductServer ¶
type UnimplementedProductServer struct { }
UnimplementedProductServer must be embedded to have forward compatible implementations.
func (UnimplementedProductServer) CreateProduct ¶
func (UnimplementedProductServer) CreateProduct(context.Context, *CreateProductReq) (*CreateProductReply, error)
func (UnimplementedProductServer) DeListingProduct ¶
func (UnimplementedProductServer) DeListingProduct(context.Context, *DeListingProductReq) (*DeListingProductReply, error)
func (UnimplementedProductServer) DeleteProduct ¶
func (UnimplementedProductServer) DeleteProduct(context.Context, *DeleteProductReq) (*DeleteProductReply, error)
func (UnimplementedProductServer) GetProductList ¶
func (UnimplementedProductServer) GetProductList(context.Context, *GetProductListReq) (*GetProductListReply, error)
func (UnimplementedProductServer) ListingProduct ¶
func (UnimplementedProductServer) ListingProduct(context.Context, *ListingProductReq) (*ListingProductReply, error)
func (UnimplementedProductServer) UpdateProduct ¶
func (UnimplementedProductServer) UpdateProduct(context.Context, *UpdateProductReq) (*UpdateProductReply, error)
type UnsafeProductServer ¶
type UnsafeProductServer interface {
// contains filtered or unexported methods
}
UnsafeProductServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProductServer will result in compilation errors.
type UpdateProductReply ¶
type UpdateProductReply struct { Code Code `protobuf:"varint,1,opt,name=code,proto3,enum=Code" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*UpdateProductReply) Descriptor
deprecated
func (*UpdateProductReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProductReply.ProtoReflect.Descriptor instead.
func (*UpdateProductReply) GetCode ¶
func (x *UpdateProductReply) GetCode() Code
func (*UpdateProductReply) GetMsg ¶
func (x *UpdateProductReply) GetMsg() string
func (*UpdateProductReply) ProtoMessage ¶
func (*UpdateProductReply) ProtoMessage()
func (*UpdateProductReply) ProtoReflect ¶
func (x *UpdateProductReply) ProtoReflect() protoreflect.Message
func (*UpdateProductReply) Reset ¶
func (x *UpdateProductReply) Reset()
func (*UpdateProductReply) String ¶
func (x *UpdateProductReply) String() string
func (*UpdateProductReply) Validate ¶
func (m *UpdateProductReply) Validate() error
Validate checks the field values on UpdateProductReply with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateProductReplyValidationError ¶
type UpdateProductReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateProductReplyValidationError is the validation error returned by UpdateProductReply.Validate if the designated constraints aren't met.
func (UpdateProductReplyValidationError) Cause ¶
func (e UpdateProductReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateProductReplyValidationError) Error ¶
func (e UpdateProductReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateProductReplyValidationError) ErrorName ¶
func (e UpdateProductReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateProductReplyValidationError) Field ¶
func (e UpdateProductReplyValidationError) Field() string
Field function returns field value.
func (UpdateProductReplyValidationError) Key ¶
func (e UpdateProductReplyValidationError) Key() bool
Key function returns key value.
func (UpdateProductReplyValidationError) Reason ¶
func (e UpdateProductReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateProductReq ¶
type UpdateProductReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Product *ProductEntity `protobuf:"bytes,2,opt,name=product,proto3" json:"product,omitempty"` // contains filtered or unexported fields }
func (*UpdateProductReq) Descriptor
deprecated
func (*UpdateProductReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProductReq.ProtoReflect.Descriptor instead.
func (*UpdateProductReq) GetId ¶
func (x *UpdateProductReq) GetId() int64
func (*UpdateProductReq) GetProduct ¶
func (x *UpdateProductReq) GetProduct() *ProductEntity
func (*UpdateProductReq) ProtoMessage ¶
func (*UpdateProductReq) ProtoMessage()
func (*UpdateProductReq) ProtoReflect ¶
func (x *UpdateProductReq) ProtoReflect() protoreflect.Message
func (*UpdateProductReq) Reset ¶
func (x *UpdateProductReq) Reset()
func (*UpdateProductReq) String ¶
func (x *UpdateProductReq) String() string
func (*UpdateProductReq) Validate ¶
func (m *UpdateProductReq) Validate() error
Validate checks the field values on UpdateProductReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UpdateProductReqValidationError ¶
type UpdateProductReqValidationError struct {
// contains filtered or unexported fields
}
UpdateProductReqValidationError is the validation error returned by UpdateProductReq.Validate if the designated constraints aren't met.
func (UpdateProductReqValidationError) Cause ¶
func (e UpdateProductReqValidationError) Cause() error
Cause function returns cause value.
func (UpdateProductReqValidationError) Error ¶
func (e UpdateProductReqValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateProductReqValidationError) ErrorName ¶
func (e UpdateProductReqValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateProductReqValidationError) Field ¶
func (e UpdateProductReqValidationError) Field() string
Field function returns field value.
func (UpdateProductReqValidationError) Key ¶
func (e UpdateProductReqValidationError) Key() bool
Key function returns key value.
func (UpdateProductReqValidationError) Reason ¶
func (e UpdateProductReqValidationError) Reason() string
Reason function returns reason value.