product_proto

package
v0.0.0-...-14907fc Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package product_proto is a generated protocol buffer package.

It is generated from these files:

proto/product.proto

It has these top-level messages:

ProductInfo
GeneralRequest
GeneralResponse
AddProductRequest
GetProductListRequest
GetProductListResponse
GetProductResponse
EditProductRequest

Index

Constants

This section is empty.

Variables

View Source
var File_proto_product_proto protoreflect.FileDescriptor

Functions

func RegisterProductServiceHandler

func RegisterProductServiceHandler(s server.Server, hdlr ProductServiceHandler, opts ...server.HandlerOption) error

Types

type AddProductRequest

type AddProductRequest struct {
	ProductInfo *ProductInfo `protobuf:"bytes,1,opt,name=productInfo,proto3" json:"productInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*AddProductRequest) Descriptor deprecated

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

Deprecated: Use AddProductRequest.ProtoReflect.Descriptor instead.

func (*AddProductRequest) GetProductInfo

func (x *AddProductRequest) GetProductInfo() *ProductInfo

func (*AddProductRequest) ProtoMessage

func (*AddProductRequest) ProtoMessage()

func (*AddProductRequest) ProtoReflect

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

func (*AddProductRequest) Reset

func (x *AddProductRequest) Reset()

func (*AddProductRequest) String

func (x *AddProductRequest) String() string

type EditProductRequest

type EditProductRequest struct {
	ProductInfo *ProductInfo `protobuf:"bytes,1,opt,name=productInfo,proto3" json:"productInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*EditProductRequest) Descriptor deprecated

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

Deprecated: Use EditProductRequest.ProtoReflect.Descriptor instead.

func (*EditProductRequest) GetProductInfo

func (x *EditProductRequest) GetProductInfo() *ProductInfo

func (*EditProductRequest) ProtoMessage

func (*EditProductRequest) ProtoMessage()

func (*EditProductRequest) ProtoReflect

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

func (*EditProductRequest) Reset

func (x *EditProductRequest) Reset()

func (*EditProductRequest) String

func (x *EditProductRequest) String() string

type GeneralRequest

type GeneralRequest struct {
	ProductId string `protobuf:"bytes,1,opt,name=productId,proto3" json:"productId,omitempty"`
	// contains filtered or unexported fields
}

func (*GeneralRequest) Descriptor deprecated

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

Deprecated: Use GeneralRequest.ProtoReflect.Descriptor instead.

func (*GeneralRequest) GetProductId

func (x *GeneralRequest) GetProductId() string

func (*GeneralRequest) ProtoMessage

func (*GeneralRequest) ProtoMessage()

func (*GeneralRequest) ProtoReflect

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

func (*GeneralRequest) Reset

func (x *GeneralRequest) Reset()

func (*GeneralRequest) String

func (x *GeneralRequest) String() string

type GeneralResponse

type GeneralResponse struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	Msg  string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
	// contains filtered or unexported fields
}

func (*GeneralResponse) Descriptor deprecated

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

Deprecated: Use GeneralResponse.ProtoReflect.Descriptor instead.

func (*GeneralResponse) GetCode

func (x *GeneralResponse) GetCode() string

func (*GeneralResponse) GetMsg

func (x *GeneralResponse) GetMsg() string

func (*GeneralResponse) ProtoMessage

func (*GeneralResponse) ProtoMessage()

func (*GeneralResponse) ProtoReflect

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

func (*GeneralResponse) Reset

func (x *GeneralResponse) Reset()

func (*GeneralResponse) String

func (x *GeneralResponse) String() string

type GetProductListRequest

type GetProductListRequest struct {
	Start  int32 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
	Amount int32 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProductListRequest) Descriptor deprecated

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

Deprecated: Use GetProductListRequest.ProtoReflect.Descriptor instead.

func (*GetProductListRequest) GetAmount

func (x *GetProductListRequest) GetAmount() int32

func (*GetProductListRequest) GetStart

func (x *GetProductListRequest) GetStart() int32

func (*GetProductListRequest) ProtoMessage

func (*GetProductListRequest) ProtoMessage()

func (*GetProductListRequest) ProtoReflect

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

func (*GetProductListRequest) Reset

func (x *GetProductListRequest) Reset()

func (*GetProductListRequest) String

func (x *GetProductListRequest) String() string

type GetProductListResponse

type GetProductListResponse struct {
	GeneralResponse *GeneralResponse `protobuf:"bytes,1,opt,name=generalResponse,proto3" json:"generalResponse,omitempty"`
	Total           int32            `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	ProductInfo     []*ProductInfo   `protobuf:"bytes,3,rep,name=productInfo,proto3" json:"productInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProductListResponse) Descriptor deprecated

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

Deprecated: Use GetProductListResponse.ProtoReflect.Descriptor instead.

func (*GetProductListResponse) GetGeneralResponse

func (x *GetProductListResponse) GetGeneralResponse() *GeneralResponse

func (*GetProductListResponse) GetProductInfo

func (x *GetProductListResponse) GetProductInfo() []*ProductInfo

func (*GetProductListResponse) GetTotal

func (x *GetProductListResponse) GetTotal() int32

func (*GetProductListResponse) ProtoMessage

func (*GetProductListResponse) ProtoMessage()

func (*GetProductListResponse) ProtoReflect

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

func (*GetProductListResponse) Reset

func (x *GetProductListResponse) Reset()

func (*GetProductListResponse) String

func (x *GetProductListResponse) String() string

type GetProductResponse

type GetProductResponse struct {
	GeneralResponse *GeneralResponse `protobuf:"bytes,1,opt,name=generalResponse,proto3" json:"generalResponse,omitempty"`
	ProductInfo     *ProductInfo     `protobuf:"bytes,2,opt,name=productInfo,proto3" json:"productInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProductResponse) Descriptor deprecated

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

Deprecated: Use GetProductResponse.ProtoReflect.Descriptor instead.

func (*GetProductResponse) GetGeneralResponse

func (x *GetProductResponse) GetGeneralResponse() *GeneralResponse

func (*GetProductResponse) GetProductInfo

func (x *GetProductResponse) GetProductInfo() *ProductInfo

func (*GetProductResponse) ProtoMessage

func (*GetProductResponse) ProtoMessage()

func (*GetProductResponse) ProtoReflect

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

func (*GetProductResponse) Reset

func (x *GetProductResponse) Reset()

func (*GetProductResponse) String

func (x *GetProductResponse) String() string

type ProductInfo

type ProductInfo struct {
	ProductId   string  `protobuf:"bytes,1,opt,name=productId,proto3" json:"productId,omitempty"`
	Name        string  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Price       float32 `protobuf:"fixed32,3,opt,name=price,proto3" json:"price,omitempty"`
	LeftNum     int32   `protobuf:"varint,4,opt,name=leftNum,proto3" json:"leftNum,omitempty"`
	Unit        string  `protobuf:"bytes,5,opt,name=unit,proto3" json:"unit,omitempty"`
	Image       string  `protobuf:"bytes,6,opt,name=image,proto3" json:"image,omitempty"`
	Description string  `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	CreateTime  string  `protobuf:"bytes,8,opt,name=createTime,proto3" json:"createTime,omitempty"`
	// contains filtered or unexported fields
}

func (*ProductInfo) Descriptor deprecated

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

Deprecated: Use ProductInfo.ProtoReflect.Descriptor instead.

func (*ProductInfo) GetCreateTime

func (x *ProductInfo) GetCreateTime() string

func (*ProductInfo) GetDescription

func (x *ProductInfo) GetDescription() string

func (*ProductInfo) GetImage

func (x *ProductInfo) GetImage() string

func (*ProductInfo) GetLeftNum

func (x *ProductInfo) GetLeftNum() int32

func (*ProductInfo) GetName

func (x *ProductInfo) GetName() string

func (*ProductInfo) GetPrice

func (x *ProductInfo) GetPrice() float32

func (*ProductInfo) GetProductId

func (x *ProductInfo) GetProductId() string

func (*ProductInfo) GetUnit

func (x *ProductInfo) GetUnit() string

func (*ProductInfo) ProtoMessage

func (*ProductInfo) ProtoMessage()

func (*ProductInfo) ProtoReflect

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

func (*ProductInfo) Reset

func (x *ProductInfo) Reset()

func (*ProductInfo) String

func (x *ProductInfo) String() string

type ProductService

type ProductService interface {
	AddProduct(ctx context.Context, in *AddProductRequest, opts ...client.CallOption) (*GeneralResponse, error)
	DeleteProduct(ctx context.Context, in *GeneralRequest, opts ...client.CallOption) (*GeneralResponse, error)
	GetProductList(ctx context.Context, in *GetProductListRequest, opts ...client.CallOption) (*GetProductListResponse, error)
	GetProduct(ctx context.Context, in *GeneralRequest, opts ...client.CallOption) (*GetProductResponse, error)
	GetSelectedProductList(ctx context.Context, in *GeneralRequest, opts ...client.CallOption) (*GetProductListResponse, error)
	EditProduct(ctx context.Context, in *EditProductRequest, opts ...client.CallOption) (*GeneralResponse, error)
}

func NewProductService

func NewProductService(name string, c client.Client) ProductService

Directories

Path Synopsis
Package event_proto is a generated protocol buffer package.
Package event_proto is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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