Documentation ¶
Index ¶
- type TransactionUsecase
- func (t TransactionUsecase) CreateTransaction(ctx context.Context, trans *entity.TransactionDto) error
- func (t TransactionUsecase) DeleteTransaction(ctx context.Context, transId string) error
- func (t TransactionUsecase) GetDetailTransaction(ctx context.Context, transId string) (*entity.TransactionDto, error)
- func (t TransactionUsecase) GetListTransaction(ctx context.Context, filter *entity.GeneralFilter) ([]*entity.TransactionDto, error)
- func (t TransactionUsecase) UpdateTransaction(ctx context.Context, trans *entity.TransactionDto) error
- type TransactionUsecaseFactory
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 ¶
func (prod *TransactionUsecaseFactory) Create() usecase.TransactionUsecaseInterface
Click to show internal directories.
Click to hide internal directories.