aa
This commit is contained in:
@@ -123,8 +123,53 @@ func (a *API) OrderDetailGet(orderID string) (orderDetailGetResult *OrderDetailG
|
|||||||
return orderDetailGetResult, err
|
return orderDetailGetResult, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type OrderListIncrementGetResult struct {
|
||||||
|
TotalCount int `json:"total_count"`
|
||||||
|
OrderList []struct {
|
||||||
|
SepMarketFee int `json:"sep_market_fee"`
|
||||||
|
GoodsPrice int `json:"goods_price"`
|
||||||
|
SepDuoID int `json:"sep_duo_id"`
|
||||||
|
PromotionRate int `json:"promotion_rate"`
|
||||||
|
Type int `json:"type"`
|
||||||
|
CatIds []int `json:"cat_ids"`
|
||||||
|
OrderStatus int `json:"order_status"`
|
||||||
|
OrderCreateTime int `json:"order_create_time"`
|
||||||
|
OrderSettleTime int `json:"order_settle_time"`
|
||||||
|
IsDirect int `json:"is_direct"`
|
||||||
|
OrderGroupSuccessTime int `json:"order_group_success_time"`
|
||||||
|
OrderAmount int `json:"order_amount"`
|
||||||
|
PriceCompareStatus int `json:"price_compare_status"`
|
||||||
|
OrderModifyAt int `json:"order_modify_at"`
|
||||||
|
AuthDuoID int `json:"auth_duo_id"`
|
||||||
|
CpaNew int `json:"cpa_new"`
|
||||||
|
GoodsName string `json:"goods_name"`
|
||||||
|
BatchNo string `json:"batch_no"`
|
||||||
|
GoodsQuantity int `json:"goods_quantity"`
|
||||||
|
GoodsID int64 `json:"goods_id"`
|
||||||
|
SepParameters string `json:"sep_parameters"`
|
||||||
|
SepRate int `json:"sep_rate"`
|
||||||
|
CustomParameters string `json:"custom_parameters"`
|
||||||
|
GoodsThumbnailURL string `json:"goods_thumbnail_url"`
|
||||||
|
ShareRate int `json:"share_rate"`
|
||||||
|
PromotionAmount int `json:"promotion_amount"`
|
||||||
|
OrderPayTime int `json:"order_pay_time"`
|
||||||
|
GroupID int64 `json:"group_id"`
|
||||||
|
SepPid string `json:"sep_pid"`
|
||||||
|
FailReason string `json:"fail_reason"`
|
||||||
|
OrderStatusDesc string `json:"order_status_desc"`
|
||||||
|
ShareAmount int `json:"share_amount"`
|
||||||
|
OrderID string `json:"order_id"`
|
||||||
|
GoodsSign string `json:"goods_sign"`
|
||||||
|
OrderSn string `json:"order_sn"`
|
||||||
|
PID string `json:"p_id"`
|
||||||
|
ZsDuoID int `json:"zs_duo_id"`
|
||||||
|
OrderReceiveTime int `json:"order_receive_time"`
|
||||||
|
} `json:"order_list"`
|
||||||
|
RequestID string `json:"request_id"`
|
||||||
|
}
|
||||||
|
|
||||||
//查询订单列表2
|
//查询订单列表2
|
||||||
func (a *API) OrderListIncrementGet(start_update_time, end_update_time int64, page, pageSize int) (orderDetailGetResult *OrderDetailGetResult, err error) {
|
func (a *API) OrderListIncrementGet(start_update_time, end_update_time int64, page, pageSize int) (orderListIncrementGetResult *OrderListIncrementGetResult, err error) {
|
||||||
params := map[string]interface{}{
|
params := map[string]interface{}{
|
||||||
"start_update_time": start_update_time,
|
"start_update_time": start_update_time,
|
||||||
"end_update_time": end_update_time,
|
"end_update_time": end_update_time,
|
||||||
@@ -133,7 +178,7 @@ func (a *API) OrderListIncrementGet(start_update_time, end_update_time int64, pa
|
|||||||
}
|
}
|
||||||
result, err := a.AccessAPI("pdd.ddk.order.list.increment.get", false, params)
|
result, err := a.AccessAPI("pdd.ddk.order.list.increment.get", false, params)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
utils.Map2StructByJson(result["order_detail_response"], &orderDetailGetResult, false)
|
utils.Map2StructByJson(result["order_list_get_response"], &orderListIncrementGetResult, false)
|
||||||
}
|
}
|
||||||
return orderDetailGetResult, err
|
return orderListIncrementGetResult, err
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ func TestOrderDetailGet(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOrderListIncrementGet(t *testing.T) {
|
func TestOrderListIncrementGet(t *testing.T) {
|
||||||
result, err := api.OrderListIncrementGet(time.Now().Add(-time.Hour*24).Unix(), time.Now().Unix(), 1, 10)
|
result, err := api.OrderListIncrementGet(time.Now().Add(-time.Hour*24).Unix(), time.Now().Unix(), 1, 50)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user