23 lines
349 B
Go
23 lines
349 B
Go
package domain
|
|
|
|
type TransactionType string
|
|
|
|
const (
|
|
DEPOSIT TransactionType = "deposit"
|
|
WITHDRAW TransactionType = "withdraw"
|
|
)
|
|
|
|
type Transaction struct {
|
|
ID int64
|
|
Amount Currency
|
|
Type TransactionType
|
|
Verified bool
|
|
WalletID int64
|
|
}
|
|
|
|
type CreateTransaction struct {
|
|
Amount Currency
|
|
Type TransactionType
|
|
WalletID int64
|
|
}
|