1
This commit is contained in:
@@ -765,6 +765,12 @@ func (a *API) OrderStatusAndPsInfo(params map[string]interface{}) (err error) {
|
||||
return err
|
||||
}
|
||||
|
||||
// ApplyCompensation 取消的订单申请订单赔付
|
||||
func (a *API) ApplyCompensation(param *ApplyCompensationRes) (err error) {
|
||||
_, err = a.AccessAPI2("order/applyCompensation", false, utils.Struct2MapByJson(param), resultKeySuccessMsg, "")
|
||||
return err
|
||||
}
|
||||
|
||||
// 获取取消跑腿理由刘表
|
||||
// https://open-shangou.meituan.com/home/docDetail/482
|
||||
func (a *API) GetCancelDeliveryReason(orderId int64, appPoiCode string) (string, error) {
|
||||
@@ -784,21 +790,6 @@ func (a *API) GetCancelDeliveryReason(orderId int64, appPoiCode string) (string,
|
||||
return string(list), nil
|
||||
}
|
||||
|
||||
type DeliveryData struct {
|
||||
Code int `json:"code"`
|
||||
Title string `json:"title"`
|
||||
ReasonList []*ReasonList `json:"reasonList"`
|
||||
Msg string `json:"msg"`
|
||||
DeliveryStatus int `json:"deliveryStatus"`
|
||||
}
|
||||
|
||||
type ReasonList struct {
|
||||
Code string `json:"code"`
|
||||
Content string `json:"content"`
|
||||
PreCancelCode int `json:"preCancelCode"`
|
||||
PreCancelMsg string `json:"preCancelMsg"`
|
||||
}
|
||||
|
||||
// 取消跑腿配送
|
||||
func (a *API) CancelLogisticsByWmOrderId(reasonCode, detailContent, appPoiCode, orderId string) error {
|
||||
param := &CancelOrderParam{
|
||||
@@ -821,19 +812,3 @@ func (a *API) CancelLogisticsByWmOrderId(reasonCode, detailContent, appPoiCode,
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ResultMsg struct {
|
||||
Data string `json:"data"`
|
||||
Error *struct {
|
||||
Code int `json:"code"`
|
||||
Msg string `json:"msg"`
|
||||
}
|
||||
}
|
||||
|
||||
// 取消跑腿配送请求参数
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user