productclient

package
v0.0.0-...-ec24a78 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateRequest

type CreateRequest = product.CreateRequest

type CreateResponse

type CreateResponse = product.CreateResponse

type DecrStockRequest

type DecrStockRequest = product.DecrStockRequest

type DecrStockResponse

type DecrStockResponse = product.DecrStockResponse

type DetailRequest

type DetailRequest = product.DetailRequest

type DetailResponse

type DetailResponse = product.DetailResponse

type Product

type Product interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
	Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*UpdateResponse, error)
	UpdateStock(ctx context.Context, in *UpdateStockRequest, opts ...grpc.CallOption) (*UpdateStockResponse, error)
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
	Detail(ctx context.Context, in *DetailRequest, opts ...grpc.CallOption) (*DetailResponse, error)
	DecrStock(ctx context.Context, in *DecrStockRequest, opts ...grpc.CallOption) (*DecrStockResponse, error)
	DecrStockRevert(ctx context.Context, in *DecrStockRequest, opts ...grpc.CallOption) (*DecrStockResponse, error)
}

func NewProduct

func NewProduct(cli zrpc.Client) Product

type RemoveRequest

type RemoveRequest = product.RemoveRequest

type RemoveResponse

type RemoveResponse = product.RemoveResponse

type UpdateRequest

type UpdateRequest = product.UpdateRequest

type UpdateResponse

type UpdateResponse = product.UpdateResponse

type UpdateStockRequest

type UpdateStockRequest = product.UpdateStockRequest

type UpdateStockResponse

type UpdateStockResponse = product.UpdateStockResponse

Jump to

Keyboard shortcuts

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