package order func (Order) TableName() string { return "order" } // Order 表示订单信息 type Order struct { ID int64 `json:"id"` // 订单ID Type string `json:"type"` // 订单类型 OrderSN string `json:"order_sn"` // 订单编号 UserID int64 `json:"user_id"` // 用户ID ActivityType string `json:"activity_type"` // 活动类型 GoodsAmount string `json:"goods_amount"` // 商品金额 DispatchAmount string `json:"dispatch_amount"` // 配送费用 Phone string `json:"phone"` // 联系电话 Consignee string `json:"consignee"` // 收货人 ProvinceName string `json:"province_name"` // 省份名称 CityName string `json:"city_name"` // 城市名称 AreaName string `json:"area_name"` // 区域名称 Address string `json:"address"` // 收货地址 ProvinceID int64 `json:"province_id"` // 省份ID CityID int64 `json:"city_id"` // 城市ID AreaID int64 `json:"area_id"` // 区域ID Status int64 `json:"status"` // 订单状态 InvoiceStatus string `json:"invoice_status"` // 发票状态 Memo string `json:"memo"` // 备注 Remark string `json:"remark"` // 备注 TotalAmount string `json:"total_amount"` // 订单总金额 ScoreAmount int64 `json:"score_amount"` // 积分金额 TotalFee string `json:"total_fee"` // 总费用 LastTotalFee string `json:"last_total_fee"` // 最终总费用 DiscountFee string `json:"discount_fee"` // 折扣金额 CouponFee string `json:"coupon_fee"` // 优惠券金额 ActivityDiscountMoney string `json:"activity_discount_money"` // 活动折扣金额 DispatchDiscountMoney string `json:"dispatch_discount_money"` // 配送折扣金额 PayFee string `json:"pay_fee"` // 支付费用 ScoreFee int64 `json:"score_fee"` // 积分费用 GoodsOriginalAmount string `json:"goods_original_amount"` // 商品原始金额 CouponsID int64 `json:"coupons_id"` // 优惠券ID TransactionID string `json:"transaction_id"` // 交易ID PaymentJSON string `json:"payment_json"` // 支付信息JSON PayType string `json:"pay_type"` // 支付类型 Paytime int64 `json:"paytime"` // 支付时间 Ext string `json:"ext"` // 扩展信息 Platform string `json:"platform"` // 平台 Createtime int64 `json:"createtime"` // 创建时间 Item []OrderItem `json:"item"` // 订单项列表 StatusCode string `json:"status_code"` // 状态编码 StatusName string `json:"status_name"` // 状态名称 StatusDesc string `json:"status_desc"` // 状态描述 Btns []string `json:"btns"` // 按钮列表 ExtArr []ExtArr `json:"ext_arr"` // 扩展信息数组 } type ExtArr struct { BuyType string `json:"buy_type"` GrouponId int64 `json:"groupon_id"` ExpiredTime int64 `json:"expired_time"` } // OrderItem 表示订单项信息 type OrderItem struct { ID int64 `json:"id"` // 订单项ID UserID int64 `json:"user_id"` // 用户ID OrderID int64 `json:"order_id"` // 订单ID GoodsID int64 `json:"goods_id"` // 商品ID GoodsType string `json:"goods_type"` // 商品类型 GoodsSkuPriceID int64 `json:"goods_sku_price_id"` // 商品SKU价格ID ActivityID int64 `json:"activity_id"` // 活动ID ActivityType string `json:"activity_type"` // 活动类型 ItemGoodsSkuPriceID int64 `json:"item_goods_sku_price_id"` // 订单项商品SKU价格ID GoodsSkuText string `json:"goods_sku_text"` // 商品SKU文本 GoodsTitle string `json:"goods_title"` // 商品标题 GoodsImage string `json:"goods_image"` // 商品图片 GoodsOriginalPrice string `json:"goods_original_price"` // 商品原始价格 DiscountFee string `json:"discount_fee"` // 折扣金额 GoodsPrice string `json:"goods_price"` // 商品价格 GoodsNum int64 `json:"goods_num"` // 商品数量 GoodsWeight int64 `json:"goods_weight"` // 商品重量 PayPrice string `json:"pay_price"` // 支付价格 DispatchStatus int64 `json:"dispatch_status"` // 配送状态 DispatchFee string `json:"dispatch_fee"` // 配送费用 DispatchType string `json:"dispatch_type"` // 配送类型 DispatchID int64 `json:"dispatch_id"` // 配送ID StoreID int64 `json:"store_id"` // 店铺ID AftersaleStatus int64 `json:"aftersale_status"` // 售后状态 CommentStatus int64 `json:"comment_status"` // 评论状态 RefundStatus int64 `json:"refund_status"` // 退款状态 RefundFee string `json:"refund_fee"` // 退款费用 RefundMsg string `json:"refund_msg"` // 退款消息 ExpressName string `json:"express_name"` // 快递公司名称 ExpressCode string `json:"express_code"` // 快递公司代码 ExpressNo string `json:"express_no"` // 快递单号 Ext string `json:"ext"` // 扩展信息 Createtime int64 `json:"createtime"` // 创建时间 Updatetime int64 `json:"updatetime"` // 更新时间 StatusCode string `json:"status_code"` // 状态编码 StatusName string `json:"status_name"` // 状态名称 StatusDesc string `json:"status_desc"` // 状态描述 Btns []string `json:"btns"` // 按钮列表 ExtArr []ExtArr `json:"ext_arr"` // 扩展信息数组 StatusText string `json:"status_text"` // 状态文本 }