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"` // 变动金额