Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountService interface { NewAccount(request dto.AccountRequest) (*dto.AccountResponse, *errs.AppError) MakeTransaction(request dto.TransactionRequest) (*dto.TransactionResponse, *errs.AppError) }
type CustomerService ¶
type CustomerService interface { GetAllCustomer(status string) ([]dto.CustomerResponse, *errs.AppError) GetById(id string) (*dto.CustomerResponse, *errs.AppError) }
type DefaultAccountService ¶
type DefaultAccountService struct {
// contains filtered or unexported fields
}
func NewAccountService ¶
func NewAccountService(repo domain.AccountRepository) DefaultAccountService
func (DefaultAccountService) MakeTransaction ¶
func (s DefaultAccountService) MakeTransaction(req dto.TransactionRequest) (*dto.TransactionResponse, *errs.AppError)
func (DefaultAccountService) NewAccount ¶
func (d DefaultAccountService) NewAccount(request dto.AccountRequest) (*dto.AccountResponse, *errs.AppError)
type DefaultCustomerService ¶
type DefaultCustomerService struct {
// contains filtered or unexported fields
}
func NewCustomerService ¶
func NewCustomerService(repository domain.CustomerRepository) DefaultCustomerService
func (DefaultCustomerService) GetAllCustomer ¶
func (s DefaultCustomerService) GetAllCustomer(status string) ([]dto.CustomerResponse, *errs.AppError)
func (DefaultCustomerService) GetById ¶
func (s DefaultCustomerService) GetById(id string) (*dto.CustomerResponse, *errs.AppError)
Click to show internal directories.
Click to hide internal directories.