Documentation ¶
Index ¶
- type ProductRpc
- func (p *ProductRpc) DeleteProduct(ctx context.Context, in *product.DeleteProductReq) (*product.DeleteProductReply, error)
- func (p *ProductRpc) GetBanner(ctx context.Context, in *product.GetBannerReq) (*product.BannerReply, error)
- func (p *ProductRpc) GetProduct(ctx context.Context, in *product.GetProductReq) (*product.ProductReply, error)
- func (p *ProductRpc) GetProductList(ctx context.Context, in *product.GetProductListReq) (*product.ProductListReply, error)
- func (p *ProductRpc) IncrementProduct(ctx context.Context, in *product.ProductReq) (*product.IncrementProductReply, error)
- func (p *ProductRpc) UpdateProduct(ctx context.Context, in *product.ProductReq) (*product.UpdateProductReply, error)
- type ProductRpcInterface
- type UserRpcInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProductRpc ¶
type ProductRpc struct{}
func (*ProductRpc) DeleteProduct ¶
func (p *ProductRpc) DeleteProduct(ctx context.Context, in *product.DeleteProductReq) (*product.DeleteProductReply, error)
DeleteProduct 删除产品
func (*ProductRpc) GetBanner ¶
func (p *ProductRpc) GetBanner(ctx context.Context, in *product.GetBannerReq) (*product.BannerReply, error)
GetBanner 获取轮播图
func (*ProductRpc) GetProduct ¶
func (p *ProductRpc) GetProduct(ctx context.Context, in *product.GetProductReq) (*product.ProductReply, error)
GetProduct 获取商品
func (*ProductRpc) GetProductList ¶
func (p *ProductRpc) GetProductList(ctx context.Context, in *product.GetProductListReq) (*product.ProductListReply, error)
GetProductList 获取商品列表
func (*ProductRpc) IncrementProduct ¶
func (p *ProductRpc) IncrementProduct(ctx context.Context, in *product.ProductReq) (*product.IncrementProductReply, error)
IncrementProduct 新增商品
func (*ProductRpc) UpdateProduct ¶
func (p *ProductRpc) UpdateProduct(ctx context.Context, in *product.ProductReq) (*product.UpdateProductReply, error)
UpdateProduct 更新产品
type ProductRpcInterface ¶
type ProductRpcInterface interface { GetBanner(ctx context.Context, in *product.GetBannerReq) (*product.BannerReply, error) GetProduct(ctx context.Context, in *product.GetProductReq) (*product.ProductReply, error) GetProductList(ctx context.Context, in *product.GetProductListReq) (*product.ProductListReply, error) IncrementProduct(ctx context.Context, in *product.ProductReq) (*product.IncrementProductReply, error) UpdateProduct(ctx context.Context, in *product.ProductReq) (*product.UpdateProductReply, error) DeleteProduct(ctx context.Context, in *product.DeleteProductReq) (*product.DeleteProductReply, error) }
func NewProductRpc ¶
func NewProductRpc() ProductRpcInterface
type UserRpcInterface ¶
type UserRpcInterface interface { GetSms(ctx context.Context, in *user.GetSmsReq) (*user.UserReply, error) Register(ctx context.Context, in *user.RegisterReq) (*user.UserReply, error) Login(ctx context.Context, in *user.LoginReq) (*user.UserReply, error) GetUserInfo(ctx context.Context, in *user.GetUserInfoReq) (*user.UserReply, error) UpdateUserInfo(ctx context.Context, in *user.UpdateUserInfoReq) (*user.UserReply, error) }
func NewUserRpc ¶
func NewUserRpc() UserRpcInterface
Click to show internal directories.
Click to hide internal directories.