From 777f826a3248a680ff9bc05132438773a2f09abb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=9B=BD=E5=81=A5?= Date: Sun, 8 Dec 2024 22:31:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=87=8F=E5=BA=93=E5=AD=98?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- product.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/product.go b/product.go index 610faac..9342370 100644 --- a/product.go +++ b/product.go @@ -21,10 +21,18 @@ const ( StockStateDecrease StockState = "reduce_inventory" //减少库存 ) +type ProductsChangeStockType = int + +const ( + ProductsChangeStockTypePaied ProductsChangeStockType = 10 // 已支付 + ProductsChangeStockTypeSent ProductsChangeStockType = 20 // 已发货 +) + type ProductsChangeStock struct { - OrderId uint `json:"order_id"` - State StockState `json:"state"` - SkuItems []*SkuItem + OrderId uint `json:"order_id"` + State StockState `json:"state"` + SkuItems []*SkuItem `json:"sku_items"` + DecreaseChangeStockType ProductsChangeStockType `json:"decrease_change_stock_type"` } type SkuItem struct {