accounts

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SQLAccountsRepository

type SQLAccountsRepository struct {
	// contains filtered or unexported fields
}

func NewSQLAccountsRepository

func NewSQLAccountsRepository(db isql.Database, logger logr.Logger) *SQLAccountsRepository

func (*SQLAccountsRepository) AddNewAccount

func (a *SQLAccountsRepository) AddNewAccount(account *models.Account) error

func (*SQLAccountsRepository) DeleteAccount

func (a *SQLAccountsRepository) DeleteAccount(userID int64, shortName string) error

func (*SQLAccountsRepository) GetAccountByShortName added in v1.0.3

func (a *SQLAccountsRepository) GetAccountByShortName(userID int64, shortName string) (*models.Account, error)

func (*SQLAccountsRepository) ListAccounts

func (a *SQLAccountsRepository) ListAccounts(userID int64) ([]models.Account, error)

func (*SQLAccountsRepository) ListAccountsByType

func (a *SQLAccountsRepository) ListAccountsByType(userID int64, typ models.AccountType) ([]models.Account, error)

func (*SQLAccountsRepository) UpdateAccountBalance

func (a *SQLAccountsRepository) UpdateAccountBalance(userID int64, shortName string, txnAmount float64) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL