diff --git a/supply/interface/order.go b/supply/interface/order.go index 1b6a1f9..efbb436 100644 --- a/supply/interface/order.go +++ b/supply/interface/order.go @@ -20,6 +20,8 @@ type OrderInterface interface { Trajectory(ctx context.Context, orderSn string, reply *[]ReplyTrajectory) error // Finish @Title 确认收货 Finish(ctx context.Context, orderSn string, reply *int) error + // SubmitData @Title 订单下单数据 + SubmitData(ctx context.Context, supplyOrderSn string, reply *ReplySubmitData) error } type ArgsOrderCancel struct { OrderSn string // 订单编号 @@ -67,3 +69,20 @@ type PackageStep struct { Content string `json:"content"` OperatorAt int64 `json:"operatorAt"` } + +type ReplySubmitData struct { + OrderSn string `json:"orderSn"` + Status int64 `json:"status"` + OrderFee decimal.Decimal `json:"orderFee"` + FreightFee decimal.Decimal `json:"freightFee"` + LadingBillAt int64 `json:"ladingBillAt"` + Skus []ReplySubmitDataSku `json:"skus"` +} +type ReplySubmitDataSku struct { + SkuId string `json:"skuId"` + Name string `json:"name"` + Quantity int64 `json:"quantity"` + SupplyPrice decimal.Decimal `json:"supplyPrice"` + GuidePrice decimal.Decimal `json:"guidePrice"` + Amount decimal.Decimal `json:"amount"` +}