controllers

package
v0.0.0-...-d12e3b2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountController

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

func NewAccountController

func NewAccountController(db *mongo.Database, cfg *config.Config) *AccountController

func (*AccountController) CreateAccount

func (ac *AccountController) CreateAccount(c *gin.Context)

func (*AccountController) DeleteAccount

func (ac *AccountController) DeleteAccount(c *gin.Context)

func (*AccountController) GetAccountById

func (ac *AccountController) GetAccountById(c *gin.Context)

func (*AccountController) GetAllAccounts

func (ac *AccountController) GetAllAccounts(c *gin.Context)

func (*AccountController) RecalculateAllBalances

func (ac *AccountController) RecalculateAllBalances(c *gin.Context)

func (*AccountController) UpdateAccount

func (ac *AccountController) UpdateAccount(c *gin.Context)

type CategoryController

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

func NewCategoryController

func NewCategoryController(db *mongo.Database, cfg *config.Config) *CategoryController

func (*CategoryController) CreateCategory

func (cc *CategoryController) CreateCategory(c *gin.Context)

CreateCategory adds a new category

func (*CategoryController) DeleteCategory

func (cc *CategoryController) DeleteCategory(c *gin.Context)

func (*CategoryController) GetAllCategories

func (cc *CategoryController) GetAllCategories(c *gin.Context)

GetAllCategories returns all categories

func (*CategoryController) UpdateCategory

func (cc *CategoryController) UpdateCategory(c *gin.Context)

type ReportsController

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

func NewReportsController

func NewReportsController(db *mongo.Database, cfg *config.Config) *ReportsController

func (*ReportsController) AggregateTransactions

func (rc *ReportsController) AggregateTransactions(c *gin.Context)

type TransactionController

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

func NewTransactionController

func NewTransactionController(db *mongo.Database, cfg *config.Config) *TransactionController

func (*TransactionController) Create

func (tc *TransactionController) Create(c *gin.Context)

Create adds a new transaction

func (*TransactionController) Delete

func (tc *TransactionController) Delete(c *gin.Context)

Delete removes a transaction

func (*TransactionController) GetAll

func (tc *TransactionController) GetAll(c *gin.Context)

GetAll returns all transactions

func (*TransactionController) GetByID

func (tc *TransactionController) GetByID(c *gin.Context)

GetByID returns a single transaction by ID

func (*TransactionController) Update

func (tc *TransactionController) Update(c *gin.Context)

Update modifies an existing transaction

Jump to

Keyboard shortcuts

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