添加物流轨迹接口

finance
杨赟 2 years ago
parent c459660cbc
commit 3228d36ab5

@ -16,6 +16,8 @@ type OrderInterface interface {
Close(ctx context.Context, orderSn string, reply *int) error Close(ctx context.Context, orderSn string, reply *int) error
// Cancel @Title 取消订单 // Cancel @Title 取消订单
Cancel(ctx context.Context, orderSn string, reply *int) error Cancel(ctx context.Context, orderSn string, reply *int) error
// Trajectory @Title 物流轨迹
Trajectory(ctx context.Context, orderSn string, reply *[]ReplyTrajectory) error
} }
type ArgsOrderFreightFee struct { type ArgsOrderFreightFee struct {
Skus []OrderFreightFeeSkuItem // 商品信息 Skus []OrderFreightFeeSkuItem // 商品信息
@ -47,3 +49,14 @@ type OrderReceiver struct {
Email string // 邮件 Email string // 邮件
ZipCode 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"`
}

Loading…
Cancel
Save