增加减库存类型
This commit is contained in:
parent
3d8b82f0fd
commit
777f826a32
10
product.go
10
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
|
||||
SkuItems []*SkuItem `json:"sku_items"`
|
||||
DecreaseChangeStockType ProductsChangeStockType `json:"decrease_change_stock_type"`
|
||||
}
|
||||
|
||||
type SkuItem struct {
|
||||
|
Loading…
x
Reference in New Issue
Block a user