Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsRepository ¶
type AccountsRepository interface { GetAccountByID(userID int64, accID string) (*models.Account, error) ListAccounts(userID int64) ([]models.Account, error) ListAccountsByType(userID int64, typ models.AccountType) ([]models.Account, error) AddNewAccount(account *models.Account) error UpdateAccountBalance(userID int64, accID string, txnAmount float64) error DeleteAccount(userID int64, accID string) error }
type DebtorCreditorRepository ¶ added in v1.0.1
type DebtorCreditorRepository interface { GetDebtorCreditorByID(id int64) (*models.DebtorsCreditors, error) GetDebtorCreditorByName(userID int64, name string) (*models.DebtorsCreditors, error) ListDebtorCreditors(userID int64) ([]models.DebtorsCreditors, error) AddNewDebtorCreditor(drcr *models.DebtorsCreditors) error UpdateDebtorCreditorBalance(id int64, amount float64) error DeleteDebtorCreditor(id int64) error }
type EventRepository ¶
type ExpenseRepository ¶
type TransactionRepository ¶
type TransactionRepository interface { AddTransaction(txn models.Transaction) error ListTransactionsByCategory(userID int64, catID string) ([]models.Transaction, error) ListTransactions(filter models.Transaction) ([]models.Transaction, error) ListTransactionsByTime(userID int64, txnType models.TransactionType, startTime, endTime int64) ([]models.Transaction, error) GetTxnCategoryName(catID string) (string, error) ListTxnCategories() ([]models.TxnCategory, error) GetTxnSubcategoryName(subcatID string) (string, error) ListTxnSubcategories(catID string) ([]models.TxnSubcategory, error) UpdateTxnCategories() error }
Click to show internal directories.
Click to hide internal directories.