From 5637340125dca703f30fc4054d2d3290d1e0147a Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 28 Mar 2021 21:19:07 +0800 Subject: [PATCH] modify field name --- pkg/models/transaction.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/models/transaction.go b/pkg/models/transaction.go index 08bc9106..9bc261aa 100644 --- a/pkg/models/transaction.go +++ b/pkg/models/transaction.go @@ -178,7 +178,7 @@ type TransactionInfoResponse struct { // TransactionCountResponse represents transaction count response type TransactionCountResponse struct { - TotalCount int64 `json:"total_count"` + TotalCount int64 `json:"totalCount"` } // TransactionInfoPageWrapperResponse represents a response of transaction which contains items and next id @@ -190,7 +190,7 @@ type TransactionInfoPageWrapperResponse struct { // TransactionInfoPageWrapperResponse2 represents a response of transaction which contains items and count type TransactionInfoPageWrapperResponse2 struct { Items TransactionInfoResponseSlice `json:"items"` - TotalCount int64 `json:"total_count"` + TotalCount int64 `json:"totalCount"` } // TransactionStatisticResponse represents an item of transaction amounts