This commit is contained in:
邹宗楠
2024-01-17 15:38:18 +08:00
parent 2182c1ce93
commit e685418345
4 changed files with 68 additions and 83 deletions

View File

@@ -5,6 +5,11 @@ import (
"git.rosy.net.cn/baseapi/utils"
)
const (
ApplyCompensationStatusOne = 110 // 第一次申请赔付
ApplyCompensationStatusTwo = 120 // 第二次申请赔付
)
type DistributeOrderDetail struct {
WmOrderID int `json:"wm_order_id"`
WmPoiID int `json:"wm_poi_id"`
@@ -39,6 +44,50 @@ type DistributeOrderDetail struct {
DelayPushSecond int `json:"delay_push_second"`
}
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"`
}
type ResultMsg struct {
Data string `json:"data"`
Error *struct {
Code int `json:"code"`
Msg string `json:"msg"`
}
}
// ApplyCompensationRes 申请赔付
type ApplyCompensationRes struct {
OrderId int64 `json:"order_id"` // 订单id
Reason string `json:"reason"` // 原因
ApplyStatus int `json:"apply_status"` // 申请状态类型110-第一次申请120-第二次申诉。
Amount float64 `json:"amount"` // 申请赔付金额,单位是元
//FoodData []FoodDataList `json:"food_data"` // 惨损商品列表
}
type FoodDataList struct {
AppSpuCode string `json:"app_spu_code"` // 即商家中台系统里商品的编码
SkuId string `json:"sku_id"` // SKU码(商家的规格编码)
}
// 取消跑腿配送请求参数
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
}
//美团骑手修改小费,单位为元,最多小数点后一位
//order/receive/processed/w/distribute/tipAmount/v2?ignoreSetRouterProxy=true
func (a *API) OrderModityTips(orderID, poiCode string, tipAmount float64) (err error) {