package
Version:
v0.0.0-...-d05f80c
Opens a new window with list of versions in this module.
Published: May 22, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package dto contains data transfer objects.
Amount represents amount of money and allows to convert it to and from int format.
type CreateWalletRequest struct {
Name string `json:"name"`
}
type Deposit struct {
Wallet string `json:"wallet"`
Amount Amount `json:"amount"`
}
type Operation struct {
Wallet string `json:"wallet"`
Amount Amount `json:"amount"`
Type string `json:"type"`
OtherWallet string `json:"other_wallet"`
Timestamp time.Time `json:"timestamp"`
}
type Transfer struct {
WalletFrom string `json:"wallet_from"`
WalletTo string `json:"wallet_to"`
Amount Amount `json:"amount"`
}
type Wallet struct {
Name string `json:"name"`
Balance uint64 `json:"balance"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.