productclient

package
v0.0.0-...-8625c6b Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Banner = product.Banner

type BannerReply

type BannerReply = product.BannerReply

type DeleteProductReply

type DeleteProductReply = product.DeleteProductReply

type DeleteProductReq

type DeleteProductReq = product.DeleteProductReq

type GetBannerReq

type GetBannerReq = product.GetBannerReq

type GetProductListReq

type GetProductListReq = product.GetProductListReq

type GetProductReq

type GetProductReq = product.GetProductReq

type IncrementProductReply

type IncrementProductReply = product.IncrementProductReply

type Product

type Product interface {
	//  获取轮播图
	GetBanner(ctx context.Context, in *GetBannerReq, opts ...grpc.CallOption) (*BannerReply, error)
	// 获取产品
	GetProduct(ctx context.Context, in *GetProductReq, opts ...grpc.CallOption) (*ProductReply, error)
	//  获取产品列表
	GetProductList(ctx context.Context, in *GetProductListReq, opts ...grpc.CallOption) (*ProductListReply, error)
	//  新增产品
	IncrementProduct(ctx context.Context, in *ProductReq, opts ...grpc.CallOption) (*IncrementProductReply, error)
	//  修改产品
	UpdateProduct(ctx context.Context, in *ProductReq, opts ...grpc.CallOption) (*UpdateProductReply, error)
	//  删除商品
	DeleteProduct(ctx context.Context, in *DeleteProductReq, opts ...grpc.CallOption) (*DeleteProductReply, error)
}

func NewProduct

func NewProduct(cli zrpc.Client) Product

type ProductListReply

type ProductListReply = product.ProductListReply

type ProductReply

type ProductReply = product.ProductReply

type ProductReq

type ProductReq = product.ProductReq

type UpdateProductReply

type UpdateProductReply = product.UpdateProductReply

Jump to

Keyboard shortcuts

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