Compare commits

...

2 Commits

Author SHA1 Message Date
88dd6fbdf5 增加红包回退结构体 2024-12-17 15:16:52 +08:00
yuguojian
e0f73fc058 增加参数兼容 2024-12-12 14:59:13 +08:00
2 changed files with 8 additions and 1 deletions

View File

@@ -69,3 +69,8 @@ type OrderUpdateSuccess struct {
type ThirdOrderRefund struct {
ID uint `json:"id"` // 订单ID
}
type RedPacketRefund struct {
ID uint `json:"id"` // 订单ID
OrderProductsID uint `json:"order_products_id"` // 订单商品ID
}

View File

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