Documentation ¶
Index ¶
- type ExpenseCategoryService
- func (s *ExpenseCategoryService) Count(ctx context.Context) (uint, error)
- func (s *ExpenseCategoryService) Create(ctx context.Context, data *category2.CreateDTO) error
- func (s *ExpenseCategoryService) Delete(ctx context.Context, id uint) (*category2.ExpenseCategory, error)
- func (s *ExpenseCategoryService) GetAll(ctx context.Context) ([]*category2.ExpenseCategory, error)
- func (s *ExpenseCategoryService) GetByID(ctx context.Context, id uint) (*category2.ExpenseCategory, error)
- func (s *ExpenseCategoryService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*category2.ExpenseCategory, error)
- func (s *ExpenseCategoryService) Update(ctx context.Context, id uint, data *category2.UpdateDTO) error
- type ExpenseService
- func (s *ExpenseService) Count(ctx context.Context) (uint, error)
- func (s *ExpenseService) Create(ctx context.Context, data *expense.CreateDTO) error
- func (s *ExpenseService) Delete(ctx context.Context, id uint) (*expense.Expense, error)
- func (s *ExpenseService) GetAll(ctx context.Context) ([]*expense.Expense, error)
- func (s *ExpenseService) GetByID(ctx context.Context, id uint) (*expense.Expense, error)
- func (s *ExpenseService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*expense.Expense, error)
- func (s *ExpenseService) Update(ctx context.Context, id uint, data *expense.UpdateDTO) error
- type MoneyAccountService
- func (s *MoneyAccountService) Count(ctx context.Context) (uint, error)
- func (s *MoneyAccountService) Create(ctx context.Context, data *moneyaccount.CreateDTO) error
- func (s *MoneyAccountService) Delete(ctx context.Context, id uint) (*moneyaccount.Account, error)
- func (s *MoneyAccountService) GetAll(ctx context.Context) ([]*moneyaccount.Account, error)
- func (s *MoneyAccountService) GetByID(ctx context.Context, id uint) (*moneyaccount.Account, error)
- func (s *MoneyAccountService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*moneyaccount.Account, error)
- func (s *MoneyAccountService) RecalculateBalance(ctx context.Context, id uint) error
- func (s *MoneyAccountService) Update(ctx context.Context, id uint, data *moneyaccount.UpdateDTO) error
- type PaymentService
- func (s *PaymentService) Count(ctx context.Context) (uint, error)
- func (s *PaymentService) Create(ctx context.Context, data *payment.CreateDTO) error
- func (s *PaymentService) Delete(ctx context.Context, id uint) (*payment.Payment, error)
- func (s *PaymentService) GetAll(ctx context.Context) ([]*payment.Payment, error)
- func (s *PaymentService) GetByID(ctx context.Context, id uint) (*payment.Payment, error)
- func (s *PaymentService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*payment.Payment, error)
- func (s *PaymentService) Update(ctx context.Context, id uint, data *payment.UpdateDTO) error
- type TransactionService
- func (s *TransactionService) Count(ctx context.Context) (int64, error)
- func (s *TransactionService) Create(ctx context.Context, data *transaction2.Transaction) error
- func (s *TransactionService) Delete(ctx context.Context, id int64) error
- func (s *TransactionService) GetAll(ctx context.Context) ([]*transaction2.Transaction, error)
- func (s *TransactionService) GetByID(ctx context.Context, id int64) (*transaction2.Transaction, error)
- func (s *TransactionService) GetPaginated(ctx context.Context, limit, offset int, sortBy []string) ([]*transaction2.Transaction, error)
- func (s *TransactionService) Update(ctx context.Context, data *transaction2.Transaction) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpenseCategoryService ¶
type ExpenseCategoryService struct {
// contains filtered or unexported fields
}
func NewExpenseCategoryService ¶
func NewExpenseCategoryService(repo category2.Repository, publisher event.Publisher) *ExpenseCategoryService
func (*ExpenseCategoryService) Count ¶
func (s *ExpenseCategoryService) Count(ctx context.Context) (uint, error)
func (*ExpenseCategoryService) Delete ¶
func (s *ExpenseCategoryService) Delete(ctx context.Context, id uint) (*category2.ExpenseCategory, error)
func (*ExpenseCategoryService) GetAll ¶
func (s *ExpenseCategoryService) GetAll(ctx context.Context) ([]*category2.ExpenseCategory, error)
func (*ExpenseCategoryService) GetByID ¶
func (s *ExpenseCategoryService) GetByID(ctx context.Context, id uint) (*category2.ExpenseCategory, error)
func (*ExpenseCategoryService) GetPaginated ¶
func (s *ExpenseCategoryService) GetPaginated( ctx context.Context, limit, offset int, sortBy []string, ) ([]*category2.ExpenseCategory, error)
type ExpenseService ¶
type ExpenseService struct {
// contains filtered or unexported fields
}
func NewExpenseService ¶
func NewExpenseService( repo expense.Repository, publisher event.Publisher, accountService *MoneyAccountService, ) *ExpenseService
func (*ExpenseService) GetPaginated ¶
type MoneyAccountService ¶
type MoneyAccountService struct {
// contains filtered or unexported fields
}
func NewMoneyAccountService ¶
func NewMoneyAccountService(repo moneyaccount.Repository, publisher event.Publisher) *MoneyAccountService
func (*MoneyAccountService) Count ¶
func (s *MoneyAccountService) Count(ctx context.Context) (uint, error)
func (*MoneyAccountService) Create ¶
func (s *MoneyAccountService) Create(ctx context.Context, data *moneyaccount.CreateDTO) error
func (*MoneyAccountService) Delete ¶
func (s *MoneyAccountService) Delete(ctx context.Context, id uint) (*moneyaccount.Account, error)
func (*MoneyAccountService) GetAll ¶
func (s *MoneyAccountService) GetAll(ctx context.Context) ([]*moneyaccount.Account, error)
func (*MoneyAccountService) GetByID ¶
func (s *MoneyAccountService) GetByID(ctx context.Context, id uint) (*moneyaccount.Account, error)
func (*MoneyAccountService) GetPaginated ¶
func (s *MoneyAccountService) GetPaginated( ctx context.Context, limit, offset int, sortBy []string, ) ([]*moneyaccount.Account, error)
func (*MoneyAccountService) RecalculateBalance ¶
func (s *MoneyAccountService) RecalculateBalance(ctx context.Context, id uint) error
func (*MoneyAccountService) Update ¶
func (s *MoneyAccountService) Update(ctx context.Context, id uint, data *moneyaccount.UpdateDTO) error
type PaymentService ¶
type PaymentService struct {
// contains filtered or unexported fields
}
func NewPaymentService ¶
func NewPaymentService( repo payment.Repository, publisher event.Publisher, accountService *MoneyAccountService, ) *PaymentService
func (*PaymentService) GetPaginated ¶
type TransactionService ¶
type TransactionService struct {
// contains filtered or unexported fields
}
func NewTransactionService ¶
func NewTransactionService(repo transaction2.Repository, eventPublisher *event.Publisher) *TransactionService
func (*TransactionService) Count ¶
func (s *TransactionService) Count(ctx context.Context) (int64, error)
func (*TransactionService) Create ¶
func (s *TransactionService) Create(ctx context.Context, data *transaction2.Transaction) error
func (*TransactionService) Delete ¶
func (s *TransactionService) Delete(ctx context.Context, id int64) error
func (*TransactionService) GetAll ¶
func (s *TransactionService) GetAll(ctx context.Context) ([]*transaction2.Transaction, error)
func (*TransactionService) GetByID ¶
func (s *TransactionService) GetByID(ctx context.Context, id int64) (*transaction2.Transaction, error)
func (*TransactionService) GetPaginated ¶
func (s *TransactionService) GetPaginated( ctx context.Context, limit, offset int, sortBy []string, ) ([]*transaction2.Transaction, error)
func (*TransactionService) Update ¶
func (s *TransactionService) Update(ctx context.Context, data *transaction2.Transaction) error
Click to show internal directories.
Click to hide internal directories.