mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
add total amount in home page
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package models
|
||||
|
||||
// TransactionOverviewRequest represents all parameters of transaction overview request
|
||||
type TransactionOverviewRequest struct {
|
||||
Query string `form:"query"`
|
||||
}
|
||||
|
||||
// TransactionOverviewRequestItem represents an item of transaction overview request
|
||||
type TransactionOverviewRequestItem struct {
|
||||
Name string
|
||||
StartTime int64
|
||||
EndTime int64
|
||||
}
|
||||
|
||||
// TransactionOverviewResponseItem represents an item of transaction overview
|
||||
type TransactionOverviewResponseItem struct {
|
||||
StartTime int64 `json:"startTime"`
|
||||
EndTime int64 `json:"endTime"`
|
||||
IncomeAmount int64 `json:"incomeAmount"`
|
||||
ExpenseAmount int64 `json:"expenseAmount"`
|
||||
}
|
||||
Reference in New Issue
Block a user