Documentation
¶
Index ¶
- func AddGoodsIntoCartRPC(ctx context.Context, req *cart.AddGoodsIntoCartRequest) (err error)
- func CancelOrderRPC(ctx context.Context, req *order.CancelOrderReq) error
- func ChangeDeliverAddressRPC(ctx context.Context, req *order.ChangeDeliverAddressReq) error
- func CreateOrderRPC(ctx context.Context, req *order.CreateOrderReq) (orderID int64, err error)
- func CreateSpuImageRPC(ctx context.Context, req *commodity.CreateSpuImageReq, files [][]byte) (id int64, err error)
- func CreateSpuRPC(ctx context.Context, req *commodity.CreateSpuReq, files [][]byte) (id int64, err error)
- func DeleteOrderRPC(ctx context.Context, req *order.DeleteOrderReq) error
- func DeleteSpuImageRPC(ctx context.Context, req *commodity.DeleteSpuImageReq) (err error)
- func DeleteSpuRPC(ctx context.Context, req *commodity.DeleteSpuReq) (err error)
- func Init()
- func InitCartRPC()
- func InitCommodityRPC()
- func InitCommodityStreamClientRPC()
- func InitOrderRPC()
- func InitPaymentRPC()
- func InitUserRPC()
- func IsOrderExistRPC(ctx context.Context, req *order.IsOrderExistReq) (bool, error)
- func LoginRPC(ctx context.Context, req *user.LoginRequest) (response *api.LoginResponse, err error)
- func RegisterRPC(ctx context.Context, req *user.RegisterRequest) (response *api.RegisterResponse, err error)
- func RequestPaymentTokenRPC(ctx context.Context, req *payment.PaymentTokenRequest) (response *model.PaymentTokenInfo, err error)
- func RequestRefundRPC(ctx context.Context, req *payment.RefundTokenRequest) (response int64, err error)
- func UpdateSpuImageRPC(ctx context.Context, req *commodity.UpdateSpuImageReq, files [][]byte) (err error)
- func UpdateSpuRPC(ctx context.Context, req *commodity.UpdateSpuReq, files [][]byte) (err error)
- func ViewOrderListRPC(ctx context.Context, req *order.ViewOrderListReq) (*order.ViewOrderListResp, error)
- func ViewOrderRPC(ctx context.Context, req *order.ViewOrderReq) (*order.ViewOrderResp, error)
- func ViewSpuImagesRPC(ctx context.Context, req *commodity.ViewSpuImageReq) (*commodity.ViewSpuImageResp, error)
- func ViewSpuRPC(ctx context.Context, req *commodity.ViewSpuReq) (*commodity.ViewSpuResp, error)
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 ¶
CreateOrderRPC 创建订单RPC调用
func CreateSpuImageRPC ¶
func CreateSpuRPC ¶
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 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 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 UpdateSpuImageRPC ¶
func UpdateSpuRPC ¶
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调用
func ViewSpuImagesRPC ¶
func ViewSpuImagesRPC(ctx context.Context, req *commodity.ViewSpuImageReq) (*commodity.ViewSpuImageResp, error)
func ViewSpuRPC ¶
func ViewSpuRPC(ctx context.Context, req *commodity.ViewSpuReq) (*commodity.ViewSpuResp, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.