usecase

package
v0.0.0-...-ebdf8ee Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TransactionUsecase

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

func (TransactionUsecase) CreateTransaction

func (t TransactionUsecase) CreateTransaction(ctx context.Context, trans *entity.TransactionDto) error

func (TransactionUsecase) DeleteTransaction

func (t TransactionUsecase) DeleteTransaction(ctx context.Context, transId string) error

func (TransactionUsecase) GetDetailTransaction

func (t TransactionUsecase) GetDetailTransaction(ctx context.Context, transId string) (*entity.TransactionDto, error)

func (TransactionUsecase) GetListTransaction

func (t TransactionUsecase) GetListTransaction(ctx context.Context, filter *entity.GeneralFilter) ([]*entity.TransactionDto, error)

func (TransactionUsecase) UpdateTransaction

func (t TransactionUsecase) UpdateTransaction(ctx context.Context, trans *entity.TransactionDto) error

type TransactionUsecaseFactory

type TransactionUsecaseFactory struct {
	L               logger.Logger
	RepoTransaction repository.TransactionRepositoryInterface
}

func (*TransactionUsecaseFactory) Create

Jump to

Keyboard shortcuts

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