delete_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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteTxUseCase

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

func NewDeleteTxUseCase

func NewDeleteTxUseCase(periodsRepo PeriodsRepository, transactionsRepo TransactionsRepository) *DeleteTxUseCase

func (*DeleteTxUseCase) Execute

func (uc *DeleteTxUseCase) Execute(ctx context.Context, ID uint64) error

type PeriodsRepository

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

type TransactionsRepository

type TransactionsRepository interface {
	Delete(ctx context.Context, ID uint64) error
}

Jump to

Keyboard shortcuts

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