Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIResponse ¶
type SpendKindDTO ¶
func NewSpendKindDTO ¶
func NewSpendKindDTO(spendKind *SpendKind) SpendKindDTO
type Spending ¶
type SpendingDTO ¶
type SpendingDTO struct { ID string `json:"id"` Currency string `json:"currency"` Amount float32 `json:"amount"` Kind SpendKindDTO `json:"kind"` Timestamp time.Time `json:"timestamp"` }
func NewSpendingDTO ¶
func NewSpendingDTO(spending *Spending) SpendingDTO
type User ¶
type UserDTO ¶
type UserDTO struct { Email string `json:"email"` Username string `json:"username"` Spends []SpendingDTO `json:"spends"` SpendKinds []SpendKindDTO `json:"spending_kinds"` }
func NewUserDTO ¶
Click to show internal directories.
Click to hide internal directories.