From cce22f77f191b7b2fbbe7251457623c76da9f172 Mon Sep 17 00:00:00 2001 From: kanade Date: Wed, 26 Jul 2023 10:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- supply/data/order.go | 50 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/supply/data/order.go b/supply/data/order.go index d93a284..2d2a208 100644 --- a/supply/data/order.go +++ b/supply/data/order.go @@ -149,3 +149,53 @@ func (o *order) StockOutOrderList(ctx context.Context, args ArgsStockOutOrderLis err = xClient.Call(ctx, "StockOutOrderList", args, &result) return } + +type JdOrderItem struct { + CustomerName string `json:"customerName"` + OrderSn string `json:"orderSn"` + OrderSubSn string `json:"orderSubSn"` + SupplierOrderSn string `json:"supplierOrderSn"` + OrderStatus uint `json:"orderStatus"` + CreatedAt int64 `json:"createdAt"` + LadingBillAt int64 `json:"ladingBillAt"` + StockOutAt int64 `json:"stockOutAt"` + FinishAt int64 `json:"finishAt"` + SkuName string `json:"skuName"` + SkuUpcCode string `json:"skuUpcCode"` + Specification string `json:"specification"` + Quality uint `json:"quality"` + ProduceSupplyPrice decimal.Decimal `json:"produceSupplyPrice"` + ProduceTotalPrice decimal.Decimal `json:"produceTotalPrice"` + ProduceFreightFee decimal.Decimal `json:"produceFreightFee"` + ProducePrice decimal.Decimal `json:"producePrice"` + SaleSupplyPrice decimal.Decimal `json:"saleSupplyPrice"` + SaleTotalPrice decimal.Decimal `json:"saleTotalPrice"` + SaleFreightFee decimal.Decimal `json:"saleFreightFee"` + SalePrice decimal.Decimal `json:"salePrice"` + Unit string `json:"unit"` + Tax string `json:"tax"` + ReceiverName string `json:"receiverName"` + ReceiverPhone string `json:"receiverPhone"` + ReceiverAddress string `json:"receiverAddress"` +} + +type ArgsJdOrderList struct { + StartAt string + EndAt string + Page bean.Page +} + +type ReplyJdOrderList struct { + Lists []JdOrderItem `json:"lists"` + Total int64 `json:"total"` +} + +// JdList @Title 京东订单 +func (o *order) JdList(ctx context.Context, args ArgsJdOrderList) (result ReplyJdOrderList, err error) { + xClient, err := client.GetClient(o) + if err != nil { + return + } + err = xClient.Call(ctx, "JdList", args, &result) + return +}