rpc

package
v0.0.0-...-b0f014a Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProductRpc

type ProductRpc struct{}

func (*ProductRpc) DeleteProduct

DeleteProduct 删除产品

func (*ProductRpc) GetBanner

GetBanner 获取轮播图

func (*ProductRpc) GetProduct

GetProduct 获取商品

func (*ProductRpc) GetProductList

GetProductList 获取商品列表

func (*ProductRpc) IncrementProduct

func (p *ProductRpc) IncrementProduct(ctx context.Context, in *product.ProductReq) (*product.IncrementProductReply, error)

IncrementProduct 新增商品

func (*ProductRpc) UpdateProduct

UpdateProduct 更新产品

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

Jump to

Keyboard shortcuts

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