From 3228d36ab5de4f6fee02b521f974a9878d545ab7 Mon Sep 17 00:00:00 2001 From: kanade Date: Sun, 18 Sep 2022 17:14:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=89=A9=E6=B5=81=E8=BD=A8?= =?UTF-8?q?=E8=BF=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/interface/order.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/supply/interface/order.go b/supply/interface/order.go index e4f0bd1..8c81bdf 100644 --- a/supply/interface/order.go +++ b/supply/interface/order.go @@ -16,6 +16,8 @@ type OrderInterface interface { Close(ctx context.Context, orderSn string, reply *int) error // Cancel @Title 取消订单 Cancel(ctx context.Context, orderSn string, reply *int) error + // Trajectory @Title 物流轨迹 + Trajectory(ctx context.Context, orderSn string, reply *[]ReplyTrajectory) error } type ArgsOrderFreightFee struct { Skus []OrderFreightFeeSkuItem // 商品信息 @@ -47,3 +49,14 @@ type OrderReceiver struct { Email string // 邮件 ZipCode string // 邮编 } + +type ReplyTrajectory struct { + LogisticsName string `json:"logisticsName"` + WaybillCode string `json:"waybillCode"` + Steps []PackageStep `json:"steps"` +} +type PackageStep struct { + State string `json:"state"` + Content string `json:"content"` + OperatorAt int64 `json:"operatorAt"` +}