rpc

package
v0.0.0-...-2d053d8 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddGoodsIntoCartRPC

func AddGoodsIntoCartRPC(ctx context.Context, req *cart.AddGoodsIntoCartRequest) (err error)

func CancelOrderRPC

func CancelOrderRPC(ctx context.Context, req *order.CancelOrderReq) error

CancelOrderRPC 取消订单RPC调用

func ChangeDeliverAddressRPC

func ChangeDeliverAddressRPC(ctx context.Context, req *order.ChangeDeliverAddressReq) error

ChangeDeliverAddressRPC 修改配送地址RPC调用

func CreateOrderRPC

func CreateOrderRPC(ctx context.Context, req *order.CreateOrderReq) (orderID int64, err error)

CreateOrderRPC 创建订单RPC调用

func CreateSpuImageRPC

func CreateSpuImageRPC(ctx context.Context, req *commodity.CreateSpuImageReq, files [][]byte) (id int64, err error)

func CreateSpuRPC

func CreateSpuRPC(ctx context.Context, req *commodity.CreateSpuReq, files [][]byte) (id int64, err error)

func DeleteOrderRPC

func DeleteOrderRPC(ctx context.Context, req *order.DeleteOrderReq) error

DeleteOrderRPC 删除订单RPC调用

func DeleteSpuImageRPC

func DeleteSpuImageRPC(ctx context.Context, req *commodity.DeleteSpuImageReq) (err error)

func DeleteSpuRPC

func DeleteSpuRPC(ctx context.Context, req *commodity.DeleteSpuReq) (err error)

func Init

func Init()

func InitCartRPC

func InitCartRPC()

func InitCommodityRPC

func InitCommodityRPC()

func InitCommodityStreamClientRPC

func InitCommodityStreamClientRPC()

func InitOrderRPC

func InitOrderRPC()

func InitPaymentRPC

func InitPaymentRPC()

func InitUserRPC

func InitUserRPC()

func IsOrderExistRPC

func IsOrderExistRPC(ctx context.Context, req *order.IsOrderExistReq) (bool, error)

func LoginRPC

func LoginRPC(ctx context.Context, req *user.LoginRequest) (response *api.LoginResponse, err error)

func RegisterRPC

func RegisterRPC(ctx context.Context, req *user.RegisterRequest) (response *api.RegisterResponse, err error)

func RequestPaymentTokenRPC

func RequestPaymentTokenRPC(ctx context.Context, req *payment.PaymentTokenRequest) (response *model.PaymentTokenInfo, err error)

func RequestRefundRPC

func RequestRefundRPC(ctx context.Context, req *payment.RefundTokenRequest) (response int64, err error)

func UpdateSpuImageRPC

func UpdateSpuImageRPC(ctx context.Context, req *commodity.UpdateSpuImageReq, files [][]byte) (err error)

func UpdateSpuRPC

func UpdateSpuRPC(ctx context.Context, req *commodity.UpdateSpuReq, files [][]byte) (err error)

func ViewOrderListRPC

func ViewOrderListRPC(ctx context.Context, req *order.ViewOrderListReq) (*order.ViewOrderListResp, error)

ViewOrderListRPC 查看订单列表RPC调用

func ViewOrderRPC

func ViewOrderRPC(ctx context.Context, req *order.ViewOrderReq) (*order.ViewOrderResp, error)

ViewOrderRPC 查看订单详情RPC调用

Types

This section is empty.

Jump to

Keyboard shortcuts

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