mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
modify field name
This commit is contained in:
@@ -53,7 +53,7 @@ func (a *TransactionsApi) TransactionCountHandler(c *core.Context) (interface{},
|
|||||||
totalCount, err := a.transactions.GetTransactionCount(uid, transactionCountReq.MaxTime, transactionCountReq.MinTime, transactionCountReq.Type, allCategoryIds, transactionCountReq.AccountId, transactionCountReq.Keyword)
|
totalCount, err := a.transactions.GetTransactionCount(uid, transactionCountReq.MaxTime, transactionCountReq.MinTime, transactionCountReq.Type, allCategoryIds, transactionCountReq.AccountId, transactionCountReq.Keyword)
|
||||||
|
|
||||||
countResp := &models.TransactionCountResponse{
|
countResp := &models.TransactionCountResponse{
|
||||||
Count: totalCount,
|
TotalCount: totalCount,
|
||||||
}
|
}
|
||||||
|
|
||||||
return countResp, nil
|
return countResp, nil
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ type TransactionInfoResponse struct {
|
|||||||
|
|
||||||
// TransactionCountResponse represents transaction count response
|
// TransactionCountResponse represents transaction count response
|
||||||
type TransactionCountResponse struct {
|
type TransactionCountResponse struct {
|
||||||
Count int64 `json:"count"`
|
TotalCount int64 `json:"total_count"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// TransactionInfoPageWrapperResponse represents a response of transaction which contains items and next id
|
// TransactionInfoPageWrapperResponse represents a response of transaction which contains items and next id
|
||||||
|
|||||||
Reference in New Issue
Block a user