Skip to content

Instantly share code, notes, and snippets.

@hit9
Last active November 27, 2023 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hit9/cde563db0a84d97a0a4d771c2a86b8da to your computer and use it in GitHub Desktop.
Save hit9/cde563db0a84d97a0a4d771c2a86b8da to your computer and use it in GitHub Desktop.
建议的接口形式

如果不要求轨迹回传,可以只新增一个接口。

配送状态节点(粗颗粒度):

PENDING = 1 // 等待取货
DELIVERING = 5 // 已取货、配送中
ARRIVED = 10 // 已送达
CANCELED = 99 // 已取消

输入参数:

参数 说明
orderId string 订单号, 必须
status integer,当前配送状态码

另外,发货的接口,建议 Package 结构新增字段:

  1. 骑手姓名 carrierName
  2. 骑手联系电话 carrierPhone
  3. 新增跑腿平台,你们需要提供下编码列表

发货的时候,将调用 发货 接口 和 这个同城节点同步的接口( status = PENDING )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment