Documentation
¶
Index ¶
- type DadaDelivery
- func (d *DadaDelivery) AddOrder(ctx context.Context, req *proto.AddDeliverOrderReq) error
- func (d *DadaDelivery) AddOrderDirect(ctx context.Context, req *proto.AddOrderDirectReq) (*proto.AddOrderDirectResp, error)
- func (d *DadaDelivery) CancelOrder(ctx context.Context, req *proto.CancelDeliverOrderReq) (*proto.CancelDeliverOrderRes, error)
- func (d *DadaDelivery) GetNotifyUrl(c context.Context, host string) string
- func (d *DadaDelivery) QueryDeliverFee(ctx context.Context, req *proto.QueryDeliverFeeReq) (*proto.QueryDeliverFeeResult, error)
- func (d *DadaDelivery) QueryOrder(ctx context.Context, orderId string) (*proto.QueryDeliveryResult, error)
- func (d *DadaDelivery) SupportPreOrder() bool
- type Delivery
- type YunlabaDelivery
- func (d *YunlabaDelivery) AddOrder(ctx context.Context, req *proto.AddDeliverOrderReq) error
- func (d *YunlabaDelivery) AddOrderDirect(ctx context.Context, req *proto.AddOrderDirectReq) (*proto.AddOrderDirectResp, error)
- func (d *YunlabaDelivery) BindShop(ctx context.Context, req *yunlabasdk.BindShopReq) error
- func (d *YunlabaDelivery) CancelOrder(ctx context.Context, req *proto.CancelDeliverOrderReq) (*proto.CancelDeliverOrderRes, error)
- func (d *YunlabaDelivery) GetNotifyUrl(c context.Context, host string) string
- func (d *YunlabaDelivery) GetResponse(cmd string, body *yunlabasdk.ResponseBody) (*yunlabasdk.Request, error)
- func (d *YunlabaDelivery) QueryDeliverFee(ctx context.Context, req *proto.QueryDeliverFeeReq) (*proto.QueryDeliverFeeResult, error)
- func (d *YunlabaDelivery) QueryOrder(ctx context.Context, orderId string) (*proto.QueryDeliveryResult, error)
- func (d *YunlabaDelivery) QueryShopInfo(ctx context.Context, req *yunlabasdk.QueryShopReq) (*yunlabasdk.QueryShopRes, error)
- func (d *YunlabaDelivery) SupportPreOrder() bool
- func (d *YunlabaDelivery) UpdateShopInfo(ctx context.Context, req *yunlabasdk.BindShopReq) error
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 (d *DadaDelivery) AddOrderDirect(ctx context.Context, req *proto.AddOrderDirectReq) (*proto.AddOrderDirectResp, error)
func (*DadaDelivery) CancelOrder ¶
func (d *DadaDelivery) CancelOrder(ctx context.Context, req *proto.CancelDeliverOrderReq) (*proto.CancelDeliverOrderRes, error)
func (*DadaDelivery) GetNotifyUrl ¶
func (d *DadaDelivery) GetNotifyUrl(c context.Context, host string) string
func (*DadaDelivery) QueryDeliverFee ¶
func (d *DadaDelivery) QueryDeliverFee(ctx context.Context, req *proto.QueryDeliverFeeReq) (*proto.QueryDeliverFeeResult, error)
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 (d *YunlabaDelivery) AddOrder(ctx context.Context, req *proto.AddDeliverOrderReq) error
func (*YunlabaDelivery) AddOrderDirect ¶
func (d *YunlabaDelivery) AddOrderDirect(ctx context.Context, req *proto.AddOrderDirectReq) (*proto.AddOrderDirectResp, error)
func (*YunlabaDelivery) BindShop ¶
func (d *YunlabaDelivery) BindShop(ctx context.Context, req *yunlabasdk.BindShopReq) error
func (*YunlabaDelivery) CancelOrder ¶
func (d *YunlabaDelivery) CancelOrder(ctx context.Context, req *proto.CancelDeliverOrderReq) (*proto.CancelDeliverOrderRes, error)
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 (d *YunlabaDelivery) QueryDeliverFee(ctx context.Context, req *proto.QueryDeliverFeeReq) (*proto.QueryDeliverFeeResult, error)
func (*YunlabaDelivery) QueryOrder ¶
func (d *YunlabaDelivery) QueryOrder(ctx context.Context, orderId string) (*proto.QueryDeliveryResult, error)
func (*YunlabaDelivery) QueryShopInfo ¶
func (d *YunlabaDelivery) QueryShopInfo(ctx context.Context, req *yunlabasdk.QueryShopReq) (*yunlabasdk.QueryShopRes, error)
func (*YunlabaDelivery) SupportPreOrder ¶
func (d *YunlabaDelivery) SupportPreOrder() bool
func (*YunlabaDelivery) UpdateShopInfo ¶
func (d *YunlabaDelivery) UpdateShopInfo(ctx context.Context, req *yunlabasdk.BindShopReq) error
Click to show internal directories.
Click to hide internal directories.