1.优化列表格式

2.详细注释
This commit is contained in:
renzhiyuan 2025-08-07 11:20:41 +08:00
parent 105271ec40
commit 37b0ba231d
2 changed files with 3 additions and 6 deletions

View File

@ -33,8 +33,8 @@ func (g *Tysk) GetAccountBalance(accountList tysk_entity.GetAccountBalanceReq) (
if err != nil { if err != nil {
return return
} }
res = make(map[tysk_constant.AccountNo]tysk_entity.GetAccountBalanceList, len(result.List.Row)) res = make(map[tysk_constant.AccountNo]tysk_entity.GetAccountBalanceList, len(result.UserDataList))
for _, row := range result.List.Row { for _, row := range result.UserDataList {
res[row.AccountNo] = row res[row.AccountNo] = row
} }
return return

View File

@ -6,10 +6,7 @@ import (
type ( type (
AccountBalance struct { AccountBalance struct {
List struct { UserDataList []GetAccountBalanceList `json:"UserDataList"`
Name string `json:"-name"`
Row []GetAccountBalanceList `json:"row"`
} `json:"list"`
} }
GetAccountBalanceList struct { GetAccountBalanceList struct {
AccountNo tysk_constant.AccountNo `json:"accountNo" comment:"账号" ` AccountNo tysk_constant.AccountNo `json:"accountNo" comment:"账号" `