Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
8d6f2b31f2 | ||
![]() |
777f826a32 |
4
order.go
4
order.go
@@ -22,8 +22,8 @@ type OrderPay struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type OrderSent struct {
|
type OrderSent struct {
|
||||||
ID uint `json:"id"` // 订单ID
|
ID uint `json:"id"` // 订单ID
|
||||||
ProductID uint `json:"product_id"` // 商品ID
|
OrderProductsID uint `json:"order_products_id"` // 订单商品ID
|
||||||
}
|
}
|
||||||
|
|
||||||
type OrderCloseRefund struct {
|
type OrderCloseRefund struct {
|
||||||
|
14
product.go
14
product.go
@@ -21,10 +21,18 @@ const (
|
|||||||
StockStateDecrease StockState = "reduce_inventory" //减少库存
|
StockStateDecrease StockState = "reduce_inventory" //减少库存
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type ProductsChangeStockType = int
|
||||||
|
|
||||||
|
const (
|
||||||
|
ProductsChangeStockTypePaied ProductsChangeStockType = 10 // 已支付
|
||||||
|
ProductsChangeStockTypeSent ProductsChangeStockType = 20 // 已发货
|
||||||
|
)
|
||||||
|
|
||||||
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
|
SkuItems []*SkuItem `json:"sku_items"`
|
||||||
|
DecreaseChangeStockType ProductsChangeStockType `json:"decrease_change_stock_type"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type SkuItem struct {
|
type SkuItem struct {
|
||||||
|
Reference in New Issue
Block a user