Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RefreshToken ¶
type Transaction ¶
type Transaction struct { Id int64 `json:"id" db:"id"` WalletID int64 `json:"walletId" db:"wallet_id"` Description string `json:"description" db:"description"` Amount float64 `json:"amount" db:"amount"` BalanceAfter float64 `json:"balanceAfter" db:"balance_after"` CommissionAmount float64 `json:"commissionAmount" db:"commission_amount"` Currency string `json:"currency" db:"currency"` CreatedAt time.Time `json:"createdAt" db:"created_at"` }
type UpdateTransactionInput ¶
type UpdateTransactionInput struct { Description *string `json:"description"` Amount *float64 `json:"amount"` BalanceAfter *float64 CommissionAmount *float64 `json:"commissionAmount"` Currency *string `json:"currency"` }
func (UpdateTransactionInput) Validate ¶
func (i UpdateTransactionInput) Validate() error
type UpdateWalletInput ¶
func (UpdateWalletInput) Validate ¶
func (i UpdateWalletInput) Validate() error
type Wallet ¶
type Wallet struct { ID int `json:"id" db:"id"` UserId int64 `json:"user_id" db:"user_id"` Name string `json:"name" db:"name" binding:"required"` Balance float64 `json:"balance" db:"balance"` Currency string `json:"currency" db:"currency"` RegisterAt time.Time `json:"register_at" db:"register_at"` }
Click to show internal directories.
Click to hide internal directories.