From 0fc65c457a46747ba1bb4d4c1bb39ad3cf88fe67 Mon Sep 17 00:00:00 2001 From: gazebo Date: Tue, 12 Jun 2018 16:50:27 +0800 Subject: [PATCH] - specify json field name. --- platform/jdapi/order.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/platform/jdapi/order.go b/platform/jdapi/order.go index df5cbff8..58c7669a 100644 --- a/platform/jdapi/order.go +++ b/platform/jdapi/order.go @@ -5,16 +5,16 @@ import ( ) type JDOrderMsgResponse struct { - Code string - Msg string - Data string + Code string `json:"code"` + Msg string `json:"msg"` + Data string `json:"data"` } type JDOrderMsg struct { - Id int `json:"-"` // 用于传递Jdorder的主键值,减少一次读库操作 - BillId string - StatusId string - Timestamp string + Id int `json:"-"` // 用于传递Jdorder的主键值,减少一次读库操作 + BillId string `json:"billId"` + StatusId string `json:"statusId"` + Timestamp string `json:"timestamp"` } type JDDeliveryStatusMsg struct {