GetOrderWaybillInfo可选参数:isGetPos支持获取运单骑手实时信息
This commit is contained in:
@@ -221,6 +221,7 @@ const (
|
||||
WaybillStatusDelivered = 105 // todo 这个应该改为110,与订单对应
|
||||
WaybillStatusCanceled = 115
|
||||
WaybillStatusFailed = 120 // 这个状态存在的意义是区分于WaybillStatusCanceled,比如达达平台在这种状态下再次创建运单的方式不一样
|
||||
WaybillStatusEndEnd = 120
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -366,3 +367,7 @@ func WaybillVendorID2Mask(vendorID int) (mask int8) {
|
||||
func IsAfsOrderFinalStatus(status int) bool {
|
||||
return status >= AfsOrderStatusFinished && status <= AfsOrderStatusFailed
|
||||
}
|
||||
|
||||
func IsWaybillFinalStatus(status int) bool {
|
||||
return status >= WaybillStatusEndBegin && status <= WaybillStatusEndEnd
|
||||
}
|
||||
|
||||
@@ -197,6 +197,12 @@ func (w *Waybill) TableIndex() [][]string {
|
||||
}
|
||||
}
|
||||
|
||||
type WaybillExt struct {
|
||||
Waybill
|
||||
Lng float64 `json:"lng"`
|
||||
Lat float64 `json:"lat"`
|
||||
}
|
||||
|
||||
// 包含订单与运单的状态及事件vendor status
|
||||
type OrderStatus struct {
|
||||
ID int64 `orm:"column(id)" json:"id"`
|
||||
|
||||
Reference in New Issue
Block a user