提交 f6f56ff9 authored 作者: 屈传平's avatar 屈传平

wangdian

上级 bb1ede1b
......@@ -11,28 +11,51 @@ type order struct {
}
type TradeListReq struct {
ProviderNo int `json:"provider_no"`
WarehouseNo string `json:"warehouse_no"`
OuterNo string `json:"outer_no"`
IsUseOuterNo int `json:"is_use_outer_no"`
IsCheck int `json:"is_check"`
Contact string `json:"contact"`
Telno string `json:"telno"`
ReceiveAddress string `json:"receive_address"`
Tid string `json:"tid"`
TradeStatus int `json:"trade_status"`
DeliveryTerm int `json:"delivery_term"`
PayStatus int `json:"pay_status"`
TradeTime string `json:"trade_time"`
PayTime string `json:"pay_time"`
BuyerNick string `json:"buyer_nick"`
BuyerEmail string `json:"buyer_email"`
ReceiverMobile string `json:"receiver_mobile"`
ReceiverTelno string `json:"receiver_telno"`
ReceiverZip string `json:"receiver_zip"`
ReceiverProvince string `json:"receiver_province"`
ReceiverName string `json:"receiver_name"`
ReceiverCity string `json:"receiver_city"`
ReceiverDistrict string `json:"receiver_district"`
ReceiverAddress string `json:"receiver_address"`
LogisticsType int `json:"logistics_type"`
OtherFee float64 `json:"other_fee"`
PostFee float64 `json:"post_fee"`
InvoiceType int `json:"invoice_type"`
InvoiceTitle string `json:"invoice_title"`
InvoiceContent string `json:"invoice_content"`
BuyerMessage string `json:"buyer_message"`
CustData string `json:"cust_data"`
Remark string `json:"remark"`
DetailsList []struct {
RemarkFlag int `json:"remark_flag"`
PostAmount float64 `json:"post_amount"`
Paid float64 `json:"paid"`
CodAmount int `json:"cod_amount"`
ExtCodFee int `json:"ext_cod_fee"`
OrderList []struct {
Oid string `json:"oid"`
Status int `json:"status"`
RefundStatus int `json:"refund_status"`
GoodsId string `json:"goods_id"`
SpecId string `json:"spec_id"`
GoodsNo string `json:"goods_no"`
SpecNo string `json:"spec_no"`
GoodsName string `json:"goods_name"`
SpecName string `json:"spec_name"`
Num int `json:"num"`
Price float64 `json:"price"`
AdjustAmount float64 `json:"adjust_amount"`
Discount float64 `json:"discount"`
Tax float64 `json:"tax"`
Remark string `json:"remark"`
Prop1 string `json:"prop1"`
Prop2 string `json:"prop2"`
} `json:"details_list"`
ShareDiscount float64 `json:"share_discount"`
Cid string `json:"cid"`
} `json:"order_list"`
}
type TradePushReq struct {
......@@ -53,7 +76,7 @@ type TradePushRes struct {
*/
func (s *goods) TradePush(ctx context.Context, req *TradePushReq) (res *TradePushRes, err error) {
result, err := post(ctx, "/purchase_order_push.php", req)
result, err := post(ctx, "/openapi2/trade_push.php", req)
if nil != err {
return
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论