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

wangdian

上级 fda52b6f
......@@ -66,119 +66,154 @@ type RefundQueryReq struct {
SrcRefundNo string `json:"src_refund_no"`
RefundNo string `json:"refund_no"`
}
type RefundQueryRes struct {
Code int `json:"code"`
TotalCount int `json:"total_count"`
Message string `json:"message"`
TotalCount string `json:"total_count"`
Refunds []struct {
RefundId string `json:"refund_id"`
RefundNo string `json:"refund_no"`
Created string `json:"created"`
SrcNo string `json:"src_no"`
Type string `json:"type"`
ProcessStatus string `json:"process_status"`
SwapTradeId string `json:"swap_trade_id"`
Status string `json:"status"`
PayAccount string `json:"pay_account"`
PayNo string `json:"pay_no"`
GoodsAmount string `json:"goods_amount"`
RefundAmount string `json:"refund_amount"`
GuaranteeMode string `json:"guarantee_mode"`
CsStatus string `json:"cs_status"`
SalesTid string `json:"sales_tid"`
PostAmount string `json:"post_amount"`
OtherAmount string `json:"other_amount"`
Paid string `json:"paid"`
Tid string `json:"tid"`
SalesTradeId string `json:"sales_trade_id"`
BuyerNick string `json:"buyer_nick"`
ReceiverName string `json:"receiver_name"`
ReceiverAddress string `json:"receiver_address"`
ReceiverTelno string `json:"receiver_telno"`
ReturnName string `json:"return_name"`
ReturnMobile string `json:"return_mobile"`
ReturnTelno string `json:"return_telno"`
ExchangeAmount string `json:"exchange_amount"`
ReturnAddress string `json:"return_address"`
SwapReceiver string `json:"swap_receiver"`
SwapMobile string `json:"swap_mobile"`
SwapTelno string `json:"swap_telno"`
SwapProvince string `json:"swap_province"`
SwapCity string `json:"swap_city"`
SwapDistrict string `json:"swap_district"`
SwapArea string `json:"swap_area"`
SwapAddress string `json:"swap_address"`
RefundTime string `json:"refund_time"`
Remark string `json:"remark"`
Modified string `json:"modified"`
ActualRefundAmount string `json:"actual_refund_amount"`
GuaranteRefundAmount string `json:"guarante_refund_amount"`
OuterNo string `json:"outer_no"`
ReturnLogisticsName string `json:"return_logistics_name"`
ReturnLogisticsNo string `json:"return_logistics_no"`
DirectRefundAmount string `json:"direct_refund_amount"`
FinishTime string `json:"finish_time"`
ShopNo string `json:"shop_no"`
ShopName string `json:"shop_name"`
PlatformId string `json:"platform_id"`
ApiOuterNo string `json:"api_outer_no"`
CustomerNo string `json:"customer_no"`
CustomerName string `json:"customer_name"`
SwapZip interface{} `json:"swap_zip"`
SwapLogisticsType string `json:"swap_logistics_type"`
SwapLogisticsName string `json:"swap_logistics_name"`
WarehouseNo string `json:"warehouse_no"`
CreatorName string `json:"creator_name"`
SwapWarehouseNo string `json:"swap_warehouse_no"`
RefundReason string `json:"refund_reason"`
SwapTradeNo string `json:"swap_trade_no"`
ActualRefundAmount string `json:"actual_refund_amount"`
AdvanceStatus string `json:"advance_status"`
ApiOuterNo string `json:"api_outer_no"`
BadReason string `json:"bad_reason"`
BuyerNick string `json:"buyer_nick"`
ConsignMode string `json:"consign_mode"`
Created string `json:"created"`
CreatorName string `json:"creator_name"`
CsStatus string `json:"cs_status"`
CustomerId string `json:"customer_id"`
CustomerName string `json:"customer_name"`
CustomerNo string `json:"customer_no"`
DirectRefundAmount string `json:"direct_refund_amount"`
ErrorMsg string `json:"error_msg"`
ExchangeAmount string `json:"exchange_amount"`
FenxiaoNickName string `json:"fenxiao_nick_name"`
FenxiaoRefundNo string `json:"fenxiao_refund_no"`
FenxiaoTid string `json:"fenxiao_tid"`
FinishTime string `json:"finish_time"`
FlagName string `json:"flag_name"`
FromType string `json:"from_type"`
GoodsAmount string `json:"goods_amount"`
GuaranteRefundAmount string `json:"guarante_refund_amount"`
GuaranteeMode string `json:"guarantee_mode"`
IsGoodsReceived string `json:"is_goods_received"`
IsTradeCharged string `json:"is_trade_charged"`
LogisticsName string `json:"logistics_name"`
LogisticsNo string `json:"logistics_no"`
LogisticsStyle string `json:"logistics_style"`
Modified string `json:"modified"`
OpConstraint string `json:"op_constraint"`
OtherAmount string `json:"other_amount"`
OuterNo string `json:"outer_no"`
Paid string `json:"paid"`
PayAccount string `json:"pay_account"`
PayNo string `json:"pay_no"`
PlatformId string `json:"platform_id"`
PostAmount string `json:"post_amount"`
ProcessStatus string `json:"process_status"`
PushNo string `json:"push_no"`
ReasonId string `json:"reason_id"`
ReceiverAddress string `json:"receiver_address"`
ReceiverName string `json:"receiver_name"`
ReceiverTelno string `json:"receiver_telno"`
RefundAmount string `json:"refund_amount"`
RefundId string `json:"refund_id"`
RefundNo string `json:"refund_no"`
RefundOrderList []struct {
OrderId string `json:"order_id"`
RefundId string `json:"refund_id"`
Barcode string `json:"barcode"`
BrandName string `json:"brand_name"`
CostPrice string `json:"cost_price"`
Created string `json:"created"`
Discount string `json:"discount"`
EditMask string `json:"edit_mask"`
FromMaskExt string `json:"from_mask_ext"`
GoodsId string `json:"goods_id"`
GoodsName string `json:"goods_name"`
GoodsNo string `json:"goods_no"`
IsSnEnable string `json:"is_sn_enable"`
MarketPrice string `json:"market_price"`
Modified string `json:"modified"`
Oid string `json:"oid"`
Tid string `json:"tid"`
ProcessStatus string `json:"process_status"`
OrderId string `json:"order_id"`
OrderNum string `json:"order_num"`
CostPrice string `json:"cost_price"`
Price string `json:"price"`
OriginalPrice string `json:"original_price"`
Discount string `json:"discount"`
Paid string `json:"paid"`
PlatformId string `json:"platform_id"`
PositionId string `json:"position_id"`
PositionNo string `json:"position_no"`
Price string `json:"price"`
ProcessStatus string `json:"process_status"`
RefundId string `json:"refund_id"`
RefundNum string `json:"refund_num"`
TotalAmount string `json:"total_amount"`
RefundOrderAmount string `json:"refund_order_amount"`
SpecNo string `json:"spec_no"`
Remark string `json:"remark"`
SalesOrderId string `json:"sales_order_id"`
SalesTid string `json:"sales_tid"`
SalesTradeId string `json:"sales_trade_id"`
SpecCode string `json:"spec_code"`
SpecId string `json:"spec_id"`
GoodsName string `json:"goods_name"`
SpecName string `json:"spec_name"`
SuiteNo string `json:"suite_no"`
SpecNo string `json:"spec_no"`
SrcNo string `json:"src_no"`
StockinAmount string `json:"stockin_amount"`
StockinNum string `json:"stockin_num"`
SuiteId string `json:"suite_id"`
SuiteName string `json:"suite_name"`
SuiteNo string `json:"suite_no"`
SuiteNum string `json:"suite_num"`
StockinNum string `json:"stockin_num"`
Remark string `json:"remark"`
MarketPrice string `json:"market_price"`
SpecCode string `json:"spec_code"`
IsSnEnable string `json:"is_sn_enable"`
GoodsNo string `json:"goods_no"`
SalesTid string `json:"sales_tid"`
Tag string `json:"tag"`
Tid string `json:"tid"`
TotalAmount string `json:"total_amount"`
} `json:"refund_order_list"`
RefundOutGoodsList []interface{} `json:"refund_out_goods_list"`
RefundReason string `json:"refund_reason"`
RefundTime string `json:"refund_time"`
RefundVersion string `json:"refund_version"`
Remark string `json:"remark"`
ReturnAddress string `json:"return_address"`
ReturnGoodsCount string `json:"return_goods_count"`
ReturnLogisticsName string `json:"return_logistics_name"`
ReturnLogisticsNo string `json:"return_logistics_no"`
ReturnMask string `json:"return_mask"`
ReturnMobile string `json:"return_mobile"`
ReturnName string `json:"return_name"`
ReturnTelno string `json:"return_telno"`
RevertReason string `json:"revert_reason"`
RevertReasonInfo string `json:"revert_reason_info"`
SalesTid string `json:"sales_tid"`
SalesTradeId string `json:"sales_trade_id"`
ShopId string `json:"shop_id"`
ShopName string `json:"shop_name"`
ShopNo string `json:"shop_no"`
SrcNo string `json:"src_no"`
Status string `json:"status"`
StockinPreNo string `json:"stockin_pre_no"`
SwapAddress string `json:"swap_address"`
SwapArea string `json:"swap_area"`
SwapCity string `json:"swap_city"`
SwapDistrict string `json:"swap_district"`
SwapLogisticsId string `json:"swap_logistics_id"`
SwapLogisticsName string `json:"swap_logistics_name"`
SwapLogisticsType string `json:"swap_logistics_type"`
SwapMobile string `json:"swap_mobile"`
SwapProvince string `json:"swap_province"`
SwapReceiver string `json:"swap_receiver"`
SwapTelno string `json:"swap_telno"`
SwapTradeId string `json:"swap_trade_id"`
SwapTradeNo string `json:"swap_trade_no"`
SwapWarehouseId string `json:"swap_warehouse_id"`
SwapWarehouseNo string `json:"swap_warehouse_no"`
SwapZip string `json:"swap_zip"`
Tid string `json:"tid"`
Type string `json:"type"`
WarehouseId string `json:"warehouse_id"`
WarehouseNo string `json:"warehouse_no"`
WarehouseType string `json:"warehouse_type"`
WmsOuterNo string `json:"wms_outer_no"`
WmsResult string `json:"wms_result"`
WmsStatus string `json:"wms_status"`
} `json:"refunds"`
}
/**
查询退换管理
*/
func (s *orderRefund) RefundQuery(ctx context.Context, req *RefundQueryReq) (res *RefundQueryRes, err error) {
result, err := post(ctx, "/openapi2/refund_query.php", req)
if nil != err {
return
}
err = gjson.New(result).Scan(&res)
return
}
type StockRefundLogisticsQueryReq struct {
StartTime string `json:"start_time"`
EndTime string `json:"end_time"`
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论