Documentation ¶
Overview ¶
订单相关数据结构
Index ¶
Constants ¶
View Source
const ( // 订单状态(2-待发货, 3-已发货, 5-已完成, 8-维权中) ORDER_STATUS_DELIVERING = 2 ORDER_STATUS_DELIVERED = 3 ORDER_STATUS_DONE = 5 ORDER_STATUS_RIGHTS_DEFENDING = 8 )
View Source
const ( // 物流公司ID DELIVERY_COMPANY_ID_EMS = "Fsearch_code" // 邮政EMS DELIVERY_COMPANY_ID_SHENTONG = "002shentong" // 申通快递 DELIVERY_COMPANY_ID_ZHONGTONG = "066zhongtong" // 中通速递 DELIVERY_COMPANY_ID_YUANTONG = "056yuantong" // 圆通速递 DELIVERY_COMPANY_ID_TIANTIAN = "042tiantian" // 天天快递 DELIVERY_COMPANY_ID_SHUNFENG = "003shunfeng" // 顺丰速运 DELIVERY_COMPANY_ID_YUNDA = "059Yunda" // 韵达快运 DELIVERY_COMPANY_ID_ZHAIJISONG = "064zhaijisong" // 宅急送 DELIVERY_COMPANY_ID_HUITONG = "020huitong" // 汇通快运 DELIVERY_COMPANY_ID_YIXUN = "zj001yixun" // 易迅快递 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { Id string `json:"order_id"` // 订单ID Status int `json:"order_status"` // 订单状态 TotalPrice int `json:"order_total_price"` // 订单总价格(单位 : 分) CreateTime int64 `json:"order_create_time"` // 订单创建时间, unixtime ExpressPrice int `json:"order_express_price"` // 订单运费价格(单位 : 分) BuyerOpenId string `json:"buyer_openid"` // 买家微信OPENID BuyerNickname string `json:"buyer_nick"` // 买家微信昵称 ReceiverName string `json:"receiver_name"` // 收货人姓名 ReceiverProvince string `json:"receiver_province"` // 收货地址省份 ReceiverCity string `json:"receiver_city"` // 收货地址城市 ReceiverAddress string `json:"receiver_address"` // 收货详细地址 ReceiverMobile string `json:"receiver_mobile"` // 收货人移动电话 ReceiverPhone string `json:"receiver_phone"` // 收货人固定电话 ProductId string `json:"product_id"` // 商品ID ProductName string `json:"product_name"` // 商品名称 ProductPrice int `json:"product_price"` // 商品价格(单位 : 分) ProductSku string `json:"product_sku"` // 商品SKU ProductCount int `json:"product_count"` // 商品个数 ProductImage string `json:"product_img"` // 商品图片 DeliveryId string `json:"delivery_id"` // 运单ID DeliveryCompany string `json:"delivery_company"` // 物流公司编码 TransactionId string `json:"trans_id"` // 交易ID }
Click to show internal directories.
Click to hide internal directories.