diff --git a/order.go b/order.go index dbe5676..fa052b8 100644 --- a/order.go +++ b/order.go @@ -1,45 +1,45 @@ package rabbitmq_common_structure type OrderCreate struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } type OrderClose struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } type OrderPay struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } type OrderSent struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } type CloseRefund struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } type OrderFinished struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } type OrderReconciliationPrecheck struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } type OrderReconciliation struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } type OrderConsumptionAward struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } type OrderConsumptionAwardRedPacketQualification struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } type OrderConsumptionAwardRedPacketMoney struct { - ID string `json:"id"` // 订单ID + ID uint `json:"id"` // 订单ID } diff --git a/product.go b/product.go index b1285ed..1fab3f9 100644 --- a/product.go +++ b/product.go @@ -14,7 +14,7 @@ const ( ) type ProductsChange struct { - OrderId int64 `json:"order_id"` + OrderId uint `json:"order_id"` State StockState `json:"state"` SkuItems []*SkuItem } @@ -26,5 +26,5 @@ type SkuItem struct { } type ProductsStockWarn struct { - ID string `json:"id"` // skuID + ID uint `json:"id"` // skuID }