package model import ( "math" "time" ) const ( DefPageSize = 50 UnlimitedPageSize = math.MaxInt32 ) type GoodsOrderExt struct { GoodsOrder EarningPrice int64 `json:"earningPrice"` // 预估结算给门店老板的钱 WaybillStatus int `json:"waybillStatus"` CourierName string `orm:"size(32)" json:"courierName"` CourierMobile string `orm:"size(32)" json:"courierMobile"` CurrentConsigneeMobile string `orm:"-" json:"currentConsigneeMobile"` CourierVendorName string `json:"courierVendorName"` Status2 string `json:"status2"` ActualFee int64 `json:"actualFee"` // 实际要支付给快递公司的费用 DesiredFee int64 `json:"desiredFee"` // 运单总费用 WaybillCreatedAt time.Time `orm:"type(datetime);index" json:"waybillCreatedAt"` WaybillFinishedAt time.Time `orm:"type(datetime)" json:"waybillFinishedAt"` SkuID int `orm:"column(sku_id)" json:"skuID,omitempty"` SkuShopPrice int `json:"skuShopPrice,omitempty"` SkuSalePrice int `json:"skuSalePrice,omitempty"` SkuEarningPrice int `json:"skuEarningPrice,omitempty"` SkuCount2 int `json:"skuCount2,omitempty"` SkuInfo string `json:"skuInfo,omitempty"` } type OrderSkuExt struct { OrderSku FullSkuName string `json:"fullSkuName"` Image string `json:"image"` RealEarningPrice int64 `json:"realEarningPrice"` // 实际单品结算给门店老板钱 } type GoodsOrderCountInfo struct { LockStatus int `json:"lockStatus"` Status int `json:"status"` Count int `json:"count"` } type SkuMetaInfo struct { Units []string `json:"units"` SpecUnits []string `json:"specUnits"` } type PagedInfo struct { TotalCount int `json:"totalCount"` Data interface{} `json:"data"` } type OrderFinancialExt struct { OrderFinancial VendorStoreID string `orm:"column(vendor_store_id);size(48)" json:"vendorStoreID"` // OrderFinishedAt time.Time `orm:"type(datetime)" json:"orderFinishedAt"` // 订单妥投/完成时间 StoreID int `orm:"column(store_id)" json:"storeID"` // 外部系统里记录的 jxstoreid JxStoreID int `orm:"column(jx_store_id)" json:"jxStoreID"` // 根据VendorStoreID在本地系统里查询出来的 jxstoreid StoreName string `orm:"size(64)" json:"storeName"` // Status int `json:"status"` // 参见OrderStatus*相关的常量定义 Skus []*OrderSkuFinancial `orm:"-" json:"skus"` // 正向订单购买商品列表 Discounts []*OrderDiscountFinancial `orm:"-" json:"discounts"` // 正向订单享受优惠列表 } type OrderFinancialSkuExt struct { OrderSkuFinancial Image string `json:"image"` }