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

wangdian

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