|
|
@ -10,17 +10,17 @@ type ApiOuterOrderResponse struct {
|
|
|
|
Code string `json:"code"`
|
|
|
|
Code string `json:"code"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
Data struct {
|
|
|
|
Data struct {
|
|
|
|
ID int64 `json:"id"` // 订单号
|
|
|
|
Id string `json:"id"` // 订单号
|
|
|
|
ProductID int `json:"product_id"` // 商品编号
|
|
|
|
ProductId int `json:"product_id"` // 商品编号
|
|
|
|
ProductName string `json:"product_name"` // 商品名称
|
|
|
|
ProductName string `json:"product_name"` // 商品名称
|
|
|
|
ProductType int `json:"product_type"` // 商品类型(1:充值,2:卡密,3:卡券,4:人工)
|
|
|
|
ProductType int `json:"product_type"` // 商品类型(1:充值,2:卡密,3:卡券,4:人工)
|
|
|
|
ProductPrice string `json:"product_price"` // 售价
|
|
|
|
ProductPrice string `json:"product_price"` // 售价
|
|
|
|
Quantity int `json:"quantity"` // 购买数量
|
|
|
|
Quantity int `json:"quantity"` // 购买数量
|
|
|
|
TotalPrice string `json:"total_price"` // 总支付价格
|
|
|
|
TotalPrice string `json:"total_price"` // 总支付价格
|
|
|
|
RefundedAmount float64 `json:"refunded_amount"` // 已退款金额
|
|
|
|
RefundedAmount float64 `json:"refunded_amount"` // 已退款金额
|
|
|
|
BuyerCustomerID int `json:"buyer_customer_id"` // 买家编号
|
|
|
|
BuyerCustomerId int `json:"buyer_customer_id"` // 买家编号
|
|
|
|
BuyerCustomerName string `json:"buyer_customer_name"` // 买家名称
|
|
|
|
BuyerCustomerName string `json:"buyer_customer_name"` // 买家名称
|
|
|
|
SellerCustomerID int `json:"seller_customer_id"` // 卖家编号
|
|
|
|
SellerCustomerId int `json:"seller_customer_id"` // 卖家编号
|
|
|
|
SellerCustomerName string `json:"seller_customer_name"` // 卖家名称
|
|
|
|
SellerCustomerName string `json:"seller_customer_name"` // 卖家名称
|
|
|
|
State int `json:"state"` // 订单状态(100:等待发货,101:正在充值,200:交易成功,500:交易失败,501:未知状态)
|
|
|
|
State int `json:"state"` // 订单状态(100:等待发货,101:正在充值,200:交易成功,500:交易失败,501:未知状态)
|
|
|
|
CreatedAt string `json:"created_at"` // 下单时间
|
|
|
|
CreatedAt string `json:"created_at"` // 下单时间
|
|
|
@ -35,7 +35,7 @@ type ApiOuterOrderResponse struct {
|
|
|
|
Password string `json:"password"`
|
|
|
|
Password string `json:"password"`
|
|
|
|
} `json:"cards"` //【卡密类订单】卡密
|
|
|
|
} `json:"cards"` //【卡密类订单】卡密
|
|
|
|
RechargeParams string `json:"recharge_params"` //【充值类订单】
|
|
|
|
RechargeParams string `json:"recharge_params"` //【充值类订单】
|
|
|
|
OuterOrderID string `json:"outer_order_id,omitempty"` // 外部订单号
|
|
|
|
OuterOrderId string `json:"outer_order_id,omitempty"` // 外部订单号
|
|
|
|
} `json:"data"`
|
|
|
|
} `json:"data"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|