增加参数兼容

This commit is contained in:
yuguojian 2024-12-12 14:59:13 +08:00
parent 88ff5825ea
commit e0f73fc058

View File

@ -31,8 +31,10 @@ const (
type ProductsChangeStock struct { type ProductsChangeStock struct {
OrderId uint `json:"order_id"` OrderId uint `json:"order_id"`
State StockState `json:"state"` State StockState `json:"state"`
SkuItems []*SkuItem `json:"sku_items"`
DecreaseChangeStockType ProductsChangeStockType `json:"decrease_change_stock_type"` DecreaseChangeStockType ProductsChangeStockType `json:"decrease_change_stock_type"`
OrderProductsIDs []uint `json:"order_products_ids"` // 对应的订单商品ID集合加减库存如果为0整个订单商品加减库存
SkuItems []*SkuItem `json:"sku_items"` // 商家修改商品数量使用,旧逻辑兼容
} }
type SkuItem struct { type SkuItem struct {