This commit is contained in:
邹宗楠
2022-08-26 18:15:52 +08:00
parent 3d1077afb6
commit 5d9b58e91b
12 changed files with 126 additions and 12 deletions

View File

@@ -16,6 +16,21 @@ type OrderAfsInfo struct {
AfsTotalShopMoney int64 `json:"afsTotalShopMoney"`
}
type ReasonList struct {
Code string `json:"code"`
Content string `json:"content"`
PreCancelCode int `json:"preCancelCode"`
PreCancelMsg string `json:"preCancelMsg"`
}
// 取消跑腿配送请求参数
type CancelOrderParam struct {
ReasonCode string `json:"reason_code"` // 取消原因code 请开发者一定要先调用
DetailContent string `json:"detail_content"` // 取消原因
AppPoiCode string `json:"app_poi_code"` // 门店号
OrderId string `json:"order_id"` // 订单id
}
type IPurchasePlatformOrderHandler interface {
Map2Order(orderData map[string]interface{}) (order *model.GoodsOrder)
GetOrder(vendorOrgCode, vendorOrderID, vendorStoreID string) (order *model.GoodsOrder, err error)
@@ -40,6 +55,11 @@ type IPurchasePlatformOrderHandler interface {
// 完全自送的门店表示开始配送
SelfDeliverDelivering(order *model.GoodsOrder, userName string) (err error)
// 转自配送时取消非专送混合送门店取消理由
GetCancelDeliveryReason(order *model.GoodsOrder) (string, error)
// 取消美团外卖理由转使用三方配送
CancelLogisticsByWmOrderId(order *model.GoodsOrder, reasonCode, detailContent, appPoiCode, orderId string) error
// 完全自送的门店表示配送完成
SelfDeliverDelivered(order *model.GoodsOrder, userName string) (err error)
@@ -68,7 +88,7 @@ type IPurchasePlatformOrderHandler interface {
//投诉骑手
ComplaintRider(vendorOrderId string, resonID int, resonContent string) (err error)
//推送订单骑手信息
GetOrderRider(vendorOrgCode, vendorStoreID string, param map[string]interface{}) ( err error)
GetOrderRider(vendorOrgCode, vendorStoreID string, param map[string]interface{}) (err error)
}
type IAddWaybillTip interface {