client

package
v0.0.0-...-2486f02 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddProduct

func AddProduct(ctx context.Context, req *item.AddReq) (int64, error)

func CancelOrder

func CancelOrder(ctx context.Context, orderId int64) error

func CheckUser

func CheckUser(ctx context.Context, req *user.CheckUserReq) (int64, error)

func CreateOrder

func CreateOrder(ctx context.Context, req *order.CreateOrderReq) error

func CreateUser

func CreateUser(ctx context.Context, req *user.CreateUserReq) error

func EditProduct

func EditProduct(ctx context.Context, req *item.EditReq) error

func GetOrderById

func GetOrderById(ctx context.Context, orderId int64) (*order.OrderItem, error)

func GetProduct

func GetProduct(ctx context.Context, productId int64) (*item.Product, error)

func Init

func Init()

Init init rpc client

func ListOrder

func ListOrder(ctx context.Context, userId int64, status *int64) ([]*order.OrderItem, error)

func ListProduct

func ListProduct(ctx context.Context, req *item.ListReq) ([]*item.Product, error)

func MGetProducts2C

func MGetProducts2C(ctx context.Context, productIds []int64) (map[int64]*item.Product, error)

func OperateProduct

func OperateProduct(ctx context.Context, productId int64, operate string) error

func SearchProduct

func SearchProduct(ctx context.Context, req *item.SearchReq) ([]*item.Product, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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