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"` +}