create_tx

package
v0.0.0-...-4d895cd Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: GPL-3.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 AccountsRepository

type AccountsRepository interface {
	GetByID(ctx context.Context, ID uint64) (*entities.Account, error)
}

type InvoicesRepository

type InvoicesRepository interface {
	GetByID(ctx context.Context, ID uint64) (*entities.Invoice, error)
}

type PeriodsRepository

type PeriodsRepository interface {
	GetLast() (*entities.Period, error)
}

type Service

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

func NewService

func NewService(periodsRepo PeriodsRepository, transactionsRepo TransactionsRepository, accountsRepo AccountsRepository, invoicesRepo InvoicesRepository) *Service

func (*Service) Execute

func (s *Service) Execute(ctx context.Context, request port.CreateTxRequest) error

type TransactionsRepository

type TransactionsRepository interface {
	Create(ctx context.Context, tx entities.Transaction) (*entities.Transaction, error)
}

Jump to

Keyboard shortcuts

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