product

package
v0.0.0-...-250bc44 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 20 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

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

View Source
var File_product_proto protoreflect.FileDescriptor
View Source
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
const (
	Code_NOKnow              Code = 0
	Code_Success             Code = 200
	Code_GetProductErr       Code = 10000
	Code_CreateProductErr    Code = 10001
	Code_UpdateProductErr    Code = 10002
	Code_DeleteProductErr    Code = 10003
	Code_ListingProductErr   Code = 10004
	Code_DeListingProductErr Code = 10005
)

func (Code) Descriptor

func (Code) Descriptor() protoreflect.EnumDescriptor

func (Code) Enum

func (x Code) Enum() *Code

func (Code) EnumDescriptor deprecated

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

Deprecated: Use Code.Descriptor instead.

func (Code) Number

func (x Code) Number() protoreflect.EnumNumber

func (Code) String

func (x Code) String() string

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

Cause function returns cause value.

func (CreateProductReplyProductValidationError) Error

Error satisfies the builtin error interface

func (CreateProductReplyProductValidationError) ErrorName

ErrorName returns error name.

func (CreateProductReplyProductValidationError) Field

Field function returns field value.

func (CreateProductReplyProductValidationError) Key

Key function returns key value.

func (CreateProductReplyProductValidationError) Reason

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

Cause function returns cause value.

func (CreateProductReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateProductReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateProductReplyValidationError) Field

Field function returns field value.

func (CreateProductReplyValidationError) Key

Key function returns key value.

func (CreateProductReplyValidationError) Reason

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

Cause function returns cause value.

func (CreateProductReqValidationError) Error

Error satisfies the builtin error interface

func (CreateProductReqValidationError) ErrorName

ErrorName returns error name.

func (CreateProductReqValidationError) Field

Field function returns field value.

func (CreateProductReqValidationError) Key

Key function returns key value.

func (CreateProductReqValidationError) Reason

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 (*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 (*DeListingProductReplyProduct) Reset

func (x *DeListingProductReplyProduct) Reset()

func (*DeListingProductReplyProduct) 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

Cause function returns cause value.

func (DeListingProductReplyProductValidationError) Error

Error satisfies the builtin error interface

func (DeListingProductReplyProductValidationError) ErrorName

ErrorName returns error name.

func (DeListingProductReplyProductValidationError) Field

Field function returns field value.

func (DeListingProductReplyProductValidationError) Key

Key function returns key value.

func (DeListingProductReplyProductValidationError) Reason

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

Cause function returns cause value.

func (DeListingProductReplyValidationError) Error

Error satisfies the builtin error interface

func (DeListingProductReplyValidationError) ErrorName

ErrorName returns error name.

func (DeListingProductReplyValidationError) Field

Field function returns field value.

func (DeListingProductReplyValidationError) Key

Key function returns key value.

func (DeListingProductReplyValidationError) Reason

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

Cause function returns cause value.

func (DeListingProductReqValidationError) Error

Error satisfies the builtin error interface

func (DeListingProductReqValidationError) ErrorName

ErrorName returns error name.

func (DeListingProductReqValidationError) Field

Field function returns field value.

func (DeListingProductReqValidationError) Key

Key function returns key value.

func (DeListingProductReqValidationError) Reason

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

Cause function returns cause value.

func (DeleteProductReplyProductValidationError) Error

Error satisfies the builtin error interface

func (DeleteProductReplyProductValidationError) ErrorName

ErrorName returns error name.

func (DeleteProductReplyProductValidationError) Field

Field function returns field value.

func (DeleteProductReplyProductValidationError) Key

Key function returns key value.

func (DeleteProductReplyProductValidationError) Reason

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

Cause function returns cause value.

func (DeleteProductReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteProductReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteProductReplyValidationError) Field

Field function returns field value.

func (DeleteProductReplyValidationError) Key

Key function returns key value.

func (DeleteProductReplyValidationError) Reason

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

Cause function returns cause value.

func (DeleteProductReqValidationError) Error

Error satisfies the builtin error interface

func (DeleteProductReqValidationError) ErrorName

ErrorName returns error name.

func (DeleteProductReqValidationError) Field

Field function returns field value.

func (DeleteProductReqValidationError) Key

Key function returns key value.

func (DeleteProductReqValidationError) Reason

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

Cause function returns cause value.

func (GetProductListReplyProductValidationError) Error

Error satisfies the builtin error interface

func (GetProductListReplyProductValidationError) ErrorName

ErrorName returns error name.

func (GetProductListReplyProductValidationError) Field

Field function returns field value.

func (GetProductListReplyProductValidationError) Key

Key function returns key value.

func (GetProductListReplyProductValidationError) Reason

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

Cause function returns cause value.

func (GetProductListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetProductListReplyValidationError) ErrorName

ErrorName returns error name.

func (GetProductListReplyValidationError) Field

Field function returns field value.

func (GetProductListReplyValidationError) Key

Key function returns key value.

func (GetProductListReplyValidationError) Reason

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

Cause function returns cause value.

func (GetProductListReqValidationError) Error

Error satisfies the builtin error interface

func (GetProductListReqValidationError) ErrorName

ErrorName returns error name.

func (GetProductListReqValidationError) Field

Field function returns field value.

func (GetProductListReqValidationError) Key

Key function returns key value.

func (GetProductListReqValidationError) Reason

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

Cause function returns cause value.

func (ListingProductReplyProductValidationError) Error

Error satisfies the builtin error interface

func (ListingProductReplyProductValidationError) ErrorName

ErrorName returns error name.

func (ListingProductReplyProductValidationError) Field

Field function returns field value.

func (ListingProductReplyProductValidationError) Key

Key function returns key value.

func (ListingProductReplyProductValidationError) Reason

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

Cause function returns cause value.

func (ListingProductReplyValidationError) Error

Error satisfies the builtin error interface

func (ListingProductReplyValidationError) ErrorName

ErrorName returns error name.

func (ListingProductReplyValidationError) Field

Field function returns field value.

func (ListingProductReplyValidationError) Key

Key function returns key value.

func (ListingProductReplyValidationError) Reason

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

Cause function returns cause value.

func (ListingProductReqValidationError) Error

Error satisfies the builtin error interface

func (ListingProductReqValidationError) ErrorName

ErrorName returns error name.

func (ListingProductReqValidationError) Field

Field function returns field value.

func (ListingProductReqValidationError) Key

Key function returns key value.

func (ListingProductReqValidationError) Reason

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

Cause function returns cause value.

func (ProductEntityValidationError) Error

Error satisfies the builtin error interface

func (ProductEntityValidationError) ErrorName

func (e ProductEntityValidationError) ErrorName() string

ErrorName returns error name.

func (ProductEntityValidationError) Field

Field function returns field value.

func (ProductEntityValidationError) Key

Key function returns key value.

func (ProductEntityValidationError) Reason

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

Error satisfies the builtin error interface

func (ProductSkuValidationError) ErrorName

func (e ProductSkuValidationError) ErrorName() string

ErrorName returns error name.

func (ProductSkuValidationError) Field

Field function returns field value.

func (ProductSkuValidationError) Key

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

func (UnimplementedProductServer) DeleteProduct

func (UnimplementedProductServer) GetProductList

func (UnimplementedProductServer) ListingProduct

func (UnimplementedProductServer) UpdateProduct

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

Cause function returns cause value.

func (UpdateProductReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateProductReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateProductReplyValidationError) Field

Field function returns field value.

func (UpdateProductReplyValidationError) Key

Key function returns key value.

func (UpdateProductReplyValidationError) Reason

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

Cause function returns cause value.

func (UpdateProductReqValidationError) Error

Error satisfies the builtin error interface

func (UpdateProductReqValidationError) ErrorName

ErrorName returns error name.

func (UpdateProductReqValidationError) Field

Field function returns field value.

func (UpdateProductReqValidationError) Key

Key function returns key value.

func (UpdateProductReqValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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