From 6251fea936227ab1433b0e95b07e90c651cbe18d Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Mon, 30 Oct 2023 17:10:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=8A=E4=BC=A0logo--debug=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/gmodel/fs_order_logic.go | 10 +++++----- utils/order/order.go | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/model/gmodel/fs_order_logic.go b/model/gmodel/fs_order_logic.go index b29b3b81..ebd8b52a 100644 --- a/model/gmodel/fs_order_logic.go +++ b/model/gmodel/fs_order_logic.go @@ -53,11 +53,11 @@ type PayInfo struct { // 金额明细 type AmountInfo struct { - Change AmountCurrency `json:"change,omitempty"` // 变动金额 - ChangeRemark string `json:"change_remark,omitempty"` // 变动备注 - Current AmountCurrency `json:"current"` // 当前金额 - Initiate AmountCurrency `json:"initiate"` // 初始金额 - Metadata map[string]interface{} `json:"metadata"` // 额外明细 + Change AmountCurrency `json:"change"` // 变动金额 + ChangeRemark string `json:"change_remark"` // 变动备注 + Current AmountCurrency `json:"current"` // 当前金额 + Initiate AmountCurrency `json:"initiate"` // 初始金额 + Metadata map[string]interface{} `json:"metadata"` // 额外明细 } // 金额货币 diff --git a/utils/order/order.go b/utils/order/order.go index 3c313da8..1e6f6df9 100644 --- a/utils/order/order.go +++ b/utils/order/order.go @@ -37,14 +37,14 @@ func GetAmountCurrency(req *AmountCurrencyReq) gmodel.AmountCurrency { } type GetAmountInfoReq struct { - ExchangeRate int64 - Initiate int64 - Current int64 - Change int64 - ChangeRemark string - Metadata map[string]interface{} - CurrentCurrency string - OriginalCurrency string + ExchangeRate int64 `json:"exchange_rate"` + Initiate int64 `json:"initiate"` + Current int64 `json:"current"` + Change int64 `json:"change"` + ChangeRemark string `json:"change_remark"` + Metadata map[string]interface{} `json:"metadata"` + CurrentCurrency string `json:"current_currency"` + OriginalCurrency string `json:"original_currency"` } // Change AmountCurrency `json:"change,omitempty"` // 变动金额