This commit is contained in:
邹宗楠
2024-03-11 10:09:32 +08:00
parent ee869d01ca
commit 42071c776c
3 changed files with 88 additions and 66 deletions

View File

@@ -7,6 +7,23 @@ const (
MerchantOrderReverseApplyPartCancel = "2" // 商户发起部分退款
)
const (
OrderCommodityType = 4 // 商品子单类型 1:称重品、2:标品、3:按件称重、4:虚拟商品子单
OrderVirtualType = 0 // 商品类型为虚拟商品是有效0:普通实物商品 1:包装费子单 2:处方服务费子单、3:附加0.01费子单、4:配送费子单
)
const (
OrderDeliveryStatusCreate = 1 // 生成运单
OrderDeliveryStatusWaitRider = 2 // 配送待分配
OrderDeliveryStatusReceived = 3 // 骑士接单
OrderDeliveryStatusToStore = 8 // 骑手到店
OrderDeliveryStatusSend = 20 // 骑手送出
OrderDeliveryStatusSendOver = 30 // 配送完成
OrderDeliveryStatusCancel = 6 // 配送取消
OrderDeliveryStatusAbnormal = 7 // 配送异常
OrderDeliveryStatusRefusal = 110 // 配送拒单
)
type ExpressInfo struct {
OrderID string `json:"order_id"`
ExpressID string `json:"express_id"`
@@ -228,9 +245,9 @@ type ListOrderInfo struct {
type PushRiderInfo struct {
DistributorId int `json:"distributor_id"` // 固定值201
Knight Knight `json:"knight"`
OrderId string // 订单id
State int // 配送状态传固定值21 开始配送(已废弃,已接入商家不影响)
SelfStatus int `json:"selfStatus"` // 配送状态
OrderId string `json:"order_id"` // 订单id
State int `json:"state"` // 配送状态传固定值21 开始配送(已废弃,已接入商家不影响)
SelfStatus int `json:"selfStatus"` // 配送状态 1:生成运单 2:配送待分配3:骑士接单必传8:骑士到店必传20:骑手送出必传30:配送完成必传6:配送取消必传7:配送异常必传101:配送拒单
SelfStatusDesc string `json:"selfStatusDesc"` // 配送状态文案描述
SelfSubStatus int `json:"selfSubStatus"` // 配送取消(6)子原因:
SelfSubStatusDesc string `json:"selfSubStatusDesc"` // 配送异常子状态文案描述
@@ -285,3 +302,17 @@ type RefundProductListParam struct {
RefundAmount string `json:"refund_amount"` // 申请退款金额(单位 分,整型)
FundCalculateType string `json:"fund_calculate_type"` // 非必填部分退类型0按件数退1按照金额退, 默认为按件数退0; 按件退 number字段必传 按金额退 refund_amount字段必传
}
// OrderSelfDeliveryLocationSync 自配送订单骑手位置回传
type OrderSelfDeliveryLocationSync struct {
OrderId string `json:"order_id"` // 订单号
Location *RiderLocation `json:"location"`
}
// RiderLocation 骑手坐标
type RiderLocation struct {
UTC string `json:"utc"` // 当前时间格式10位时间戳
Altitude string `json:"altitude"` // 海拔高度,如无,可传入固定值
Latitude string `json:"latitude"` // 纬度,建议使用高德坐标 39.90038
Longitude string `json:"longitude"` // 经度,建议使用高德坐标 116.389149
}