This patch introduces the Transaction entity. It also creates a placeholder Handle type with a Transactions method as a placeholder for the future DB adaptation. Incorporates the new types into the retriveTransactions HTTP handler.
16 lines
208 B
Go
16 lines
208 B
Go
package model
|
|
|
|
import (
|
|
"time"
|
|
|
|
"github.com/shopspring/decimal"
|
|
)
|
|
|
|
type Transaction struct {
|
|
Id int64
|
|
Date time.Time
|
|
Description string
|
|
Value decimal.Decimal
|
|
Category string
|
|
}
|