From aedde55db95368236760f02e5392dd9e9bb9b509 Mon Sep 17 00:00:00 2001 From: kanade Date: Fri, 14 Jun 2024 11:59:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=A2=E5=8D=95=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/interface/order.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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"` +}