- mtps, dada create waybill

- create legacy jxorder(not finished).
This commit is contained in:
gazebo
2018-07-14 14:35:51 +08:00
parent 52248ca427
commit 805925ff58
19 changed files with 759 additions and 147 deletions

View File

@@ -1,7 +1,7 @@
package model
const (
VenderIDUnknown = -1
VendorIDUnknown = -1
VendorIDPurchaseBegin = 0
VendorIDJD = 0
VendorIDMTWM = 1
@@ -14,14 +14,34 @@ const (
VendorIDDeliveryEnd = 102
)
var (
VendorNames = map[int]string{
VendorIDJD: "JD",
VendorIDELM: "ELEME",
VendorIDMTWM: "MT",
}
)
const (
OrderTypeOrder = 1
OrderTypeWaybill = 2
)
// https://blog.csdn.net/a13570320979/article/details/51366355
// 美团配送:
// 坐标类型0火星坐标高德腾讯地图均采用火星坐标 1百度坐标 默认值为0
// 京东:
// 收货人地址定位类型buyerCoordType值为空或为1时定位类型为gps如为其他值时定位类型为非gps类型。)
// 饿了么:
// 只支持高德坐标
// 达达:
// 只支持高德坐标
// 如下定义与美团配送兼容
const (
CoordinateTypeMars = 0 // 火星坐标
CoordinateTypeReal = 1 // 真实坐标
CoordinateTypeMars = 0 // 火星坐标高德坐标GCJ02坐标系
CoordinateTypeBaiDu = 1 // 百度坐标bd-09在GCJ02坐标系上再次偏移加密的坐标
CoordinateTypeMapbar = 2
CoordinateTypeGPS = 84 // 真实坐标WGS84原始坐标系
)
const (