package model import ( "github.com/shopspring/decimal" ) type SkuChange struct { Timestamp int64 `json:"timestamp"` SkuID uint `json:"sku_id"` } type Message struct { Timestamp int64 `json:"timestamp"` AppKey string `json:"app_key"` ChannelID uint `json:"channel_id"` } type OrderMessage struct { Message OrderChannelID string `json:"order_channel_id"` OrderID uint64 `json:"order_id"` RootOrderID uint64 `json:"root_order_id"` ParentOrderID uint64 `json:"parent_order_id"` } type SkuList struct { SkuName string `json:"sku_name"` Quantity uint `json:"quantity"` Price decimal.Decimal `json:"price"` SkuID uint64 `json:"sku_id"` Url string `json:"url"` } type OrderCreateMessage struct { OrderMessage CreateTime string `json:"create_time"` TotalFee decimal.Decimal `json:"total_fee"` FreightFee decimal.Decimal `json:"freight_fee"` SkuList []SkuList `json:"sku_list"` } type OrderPayMessage struct { OrderMessage PayTime string `json:"pay_time"` PayFee decimal.Decimal `json:"pay_fee"` } type OrderStockOutMessage struct { OrderMessage Packages []Package `json:"packages"` } type PackageSku struct { SkuName string `json:"sku_name"` Quantity uint `json:"quantity"` SkuID uint64 `json:"sku_id"` } type Package struct { LogisticsName string `json:"logistics_name"` SkuList []PackageSku `json:"sku_list"` LogisticsCode string `json:"logistics_code"` WaybillCode string `json:"waybill_code"` OutLogisticsCode string `json:"outLogistics_code"` OutboundTime string `json:"outbound_time"` } type OrderFinishMessage struct { OrderMessage FinishedTime string `json:"finished_time"` } type OrderCancelMessage struct { OrderMessage CancelTime string `json:"cancel_time"` Status uint `json:"status"` }