delivery

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DadaDelivery

type DadaDelivery struct {
	// contains filtered or unexported fields
}

func NewDadaDelivery

func NewDadaDelivery(cfg *model.BeeDelivery) *DadaDelivery

func (*DadaDelivery) AddOrder

func (d *DadaDelivery) AddOrder(ctx context.Context, req *proto.AddDeliverOrderReq) error

func (*DadaDelivery) AddOrderDirect

func (*DadaDelivery) CancelOrder

func (*DadaDelivery) GetNotifyUrl

func (d *DadaDelivery) GetNotifyUrl(c context.Context, host string) string

func (*DadaDelivery) QueryDeliverFee

func (*DadaDelivery) QueryOrder

func (d *DadaDelivery) QueryOrder(ctx context.Context, orderId string) (*proto.QueryDeliveryResult, error)

func (*DadaDelivery) SupportPreOrder

func (d *DadaDelivery) SupportPreOrder() bool

type Delivery

type Delivery interface {
	QueryOrder(ctx context.Context, orderId string) (*proto.QueryDeliveryResult, error)
	QueryDeliverFee(ctx context.Context, req *proto.QueryDeliverFeeReq) (*proto.QueryDeliverFeeResult, error)
	AddOrder(ctx context.Context, req *proto.AddDeliverOrderReq) error
	AddOrderDirect(ctx context.Context, req *proto.AddOrderDirectReq) (*proto.AddOrderDirectResp, error)
	CancelOrder(ctx context.Context, req *proto.CancelDeliverOrderReq) (*proto.CancelDeliverOrderRes, error)
	GetNotifyUrl(c context.Context, host string) string
	SupportPreOrder() bool
}

func GetDeliveryImpl

func GetDeliveryImpl(config *model.BeeDelivery) Delivery

type YunlabaDelivery

type YunlabaDelivery struct {
	// contains filtered or unexported fields
}

func NewYunlabaDelivery

func NewYunlabaDelivery(cfg *model.BeeDelivery) *YunlabaDelivery

func (*YunlabaDelivery) AddOrder

func (*YunlabaDelivery) AddOrderDirect

func (*YunlabaDelivery) BindShop

func (d *YunlabaDelivery) BindShop(ctx context.Context, req *yunlabasdk.BindShopReq) error

func (*YunlabaDelivery) CancelOrder

func (*YunlabaDelivery) GetNotifyUrl

func (d *YunlabaDelivery) GetNotifyUrl(c context.Context, host string) string

func (*YunlabaDelivery) GetResponse

func (d *YunlabaDelivery) GetResponse(cmd string, body *yunlabasdk.ResponseBody) (*yunlabasdk.Request, error)

func (*YunlabaDelivery) QueryDeliverFee

func (*YunlabaDelivery) QueryOrder

func (d *YunlabaDelivery) QueryOrder(ctx context.Context, orderId string) (*proto.QueryDeliveryResult, error)

func (*YunlabaDelivery) QueryShopInfo

func (*YunlabaDelivery) SupportPreOrder

func (d *YunlabaDelivery) SupportPreOrder() bool

func (*YunlabaDelivery) UpdateShopInfo

func (d *YunlabaDelivery) UpdateShopInfo(ctx context.Context, req *yunlabasdk.BindShopReq) error

Jump to

Keyboard shortcuts

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