Luís Murta da572704d0
Implements GET /categories
Adds type to OpenAPI. Feature done and tested E2E.
Adds common utilities package named "golang" to overcome language
deficiencies.

Issue #27
2024-06-23 20:47:54 +01:00

41 lines
550 B
Go

package entity
import (
"time"
"github.com/google/uuid"
"github.com/shopspring/decimal"
)
const InvalidId uint64 = 0
type Transaction struct {
Id uint64
Date time.Time
Description string
Value decimal.Decimal
}
type Transactions = []Transaction
type Bank struct {
Id string
Name string
NordigenId uuid.UUID
}
type Banks = []Bank
type Category struct {
Name string
Group *string
}
type Categories = []Category
type CategoryGroup struct {
Name string
}
type CategoryGroups = []CategoryGroup