From 76d0c7295c5d8b6e6fb15d8290f33d3392612ed7 Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 19 Jul 2018 18:02:57 +0800 Subject: [PATCH] - replace orderId with orderID. --- platformapi/dadaapi/order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformapi/dadaapi/order.go b/platformapi/dadaapi/order.go index 1fe47a60..6e846c46 100644 --- a/platformapi/dadaapi/order.go +++ b/platformapi/dadaapi/order.go @@ -58,9 +58,9 @@ type CancelOrderResponse struct { DeductFee float64 `json:"deduct_fee"` } -func (a *API) QueryOrderInfo(orderId string) (retVal map[string]interface{}, err error) { +func (a *API) QueryOrderInfo(orderID string) (retVal map[string]interface{}, err error) { params := make(map[string]interface{}) - params["order_id"] = orderId + params["order_id"] = orderID result, err := a.AccessAPI("api/order/status/query", params) if err != nil { return nil, err