Files
baseapi/utils/riderInfo.go
邹宗楠 ab96fc6343 1
2026-01-21 14:14:26 +08:00

33 lines
1.7 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package utils
// 美团
const (
DaDaCode = "10002" // 达达配送
FnPsCode = "10004" // 蜂鸟配送
MTPsCode = "10032" // 美团配送
UUPTCode = "10006" // uu跑腿
SFPSCode = "10007" // 顺丰配送
DYPsCode = "10018" // 抖音配送(小时达)
MyselfPsCode = "10015" // 自送
)
// RiderInfo 三方配送骑手状态,兼容平台配送骑手状态
type RiderInfo struct {
OrderId string `json:"order_id"` // 发单平台订单id(美团,京西,京,京东)
ThirdCarrierOrderId string `json:"third_carrier_order_id"` // 京西平台id(运单id)
CourierName string `json:"courier_name"` // 骑手名称
CourierPhone string `json:"courier_phone"` // 骑手电话
LogisticsProviderCode string `json:"logistics_provider_code"` // 配送平台code
LogisticsStatus int `json:"logistics_status"` // 配送状态(美团用)
LogisticsContext string `json:"logistics_context"` // 配送状态描述
Latitude string `json:"latitude"` // 骑手当前的纬度,美团使用的是高德坐标系。
Longitude string `json:"longitude"` // 骑手当前的经度,美团使用的是高德坐标系。
OpCode string `json:"opcode"` // 抖音状态(抖音才需要)
}
type RechargeBalance struct {
Amount float64 `json:"amount"` // 充值金额,元
Category string `json:"category"` // 生成链接适应场景category有二种类型值PC、H5
NotifyUrl string `json:"notify_url"` // 支付成功后跳转的页面(支付宝在支付成功后可以跳转到某个指定的页面,微信支付不支持)
}