From 9af7e32affa637cc4b113218c5ca3efd27554939 Mon Sep 17 00:00:00 2001 From: gaoda <2772718884@qq.com> Date: Mon, 8 Dec 2025 10:13:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(model):=20=E6=9B=B4=E6=96=B0=E4=BD=99?= =?UTF-8?q?=E9=A2=9D=E6=9F=A5=E8=AF=A2=E5=93=8D=E5=BA=94=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E4=BD=93=E5=AD=97=E6=AE=B5=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 BalanceQueryResponse 中的 code 字段标签改为 retCode - 将 BalanceQueryResponse 中的 msg 字段标签改为 retMsg - 将 BalanceQueryResponse 中的 resp_data 字段标签改为 respData - 将 BalanceQueryRespData 中的 pay_no 字段标签改为 payNo - 将 BalanceQueryRespData 中的 pay_type 字段标签改为 payType - 将 BalanceQueryRespData 中的 acct_st 字段标签改为 acctSt - 将 BalanceQueryRespData 中的 force_balance 字段标签改为 forceBalance - 将 BalanceQueryRespData 中的 his_balance 字段标签改为 hisBalance - 将 BalanceQueryRespData 中的 re_balance 字段标签改为 reBalance - 将 BalanceQueryRespData 中的 cu_balance 字段标签改为 cuBalance --- model/balanceQuery.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/model/balanceQuery.go b/model/balanceQuery.go index 26876b8..fd813e4 100644 --- a/model/balanceQuery.go +++ b/model/balanceQuery.go @@ -35,30 +35,30 @@ type BalanceQueryReqData struct { // 包含响应状态码、消息和业务数据 type BalanceQueryResponse struct { // 响应状态码,000000 - Code string `json:"code"` + Code string `json:"retCode"` // 响应消息 - Msg string `json:"msg"` + Msg string `json:"retMsg"` // 响应业务数据,当code为SACS0000时返回 - RespData *BalanceQueryRespData `json:"resp_data"` + RespData *BalanceQueryRespData `json:"respData"` } // BalanceQueryRespData 余额查询响应业务数据结构体 // 包含余额查询返回的具体账户信息 type BalanceQueryRespData struct { // 账号,必传 - PayNo string `json:"pay_no"` + PayNo string `json:"payNo"` // 账户类型,必传 - PayType string `json:"pay_type"` + PayType string `json:"payType"` // 账户状态,必传,取值说明:CLOSE销户,NORMAL正常,FREEZE冻结,STOPAY止付 - AcctSt string `json:"acct_st"` + AcctSt string `json:"acctSt"` // 预付余额(单位元),必传 - ForceBalance string `json:"force_balance"` + ForceBalance string `json:"forceBalance"` // 上日余额(单位元)-该字段已废弃使用,必传 - HisBalance string `json:"his_balance"` + HisBalance string `json:"hisBalance"` // 实时余额(单位元),必传 - ReBalance string `json:"re_balance"` + ReBalance string `json:"reBalance"` // 当前可用余额(单位元),必传 - CuBalance string `json:"cu_balance"` + CuBalance string `json:"cuBalance"` } // SuccessOrFail 判断余额查询请求是否成功