Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountService interface { NewAccount(dto.NewAccountRequest) (*dto.NewAccountResponse, *errs.AppError) MakeTransaction(dto.TransactionRequest) (*dto.TransactionResponse, *errs.AppError) }
func NewAccountService ¶
func NewAccountService(repository domain.AccountRepository) AccountService
type CustomerService ¶
type CustomerService interface { GetAllCustomer(status string) ([]dto.CustomerResponse, *errs.AppError) GetCustomer(id string) (*dto.CustomerResponse, *errs.AppError) }
type DefaultAccountService ¶
type DefaultAccountService struct {
// contains filtered or unexported fields
}
func (DefaultAccountService) MakeTransaction ¶
func (s DefaultAccountService) MakeTransaction(req dto.TransactionRequest) (*dto.TransactionResponse, *errs.AppError)
func (DefaultAccountService) NewAccount ¶
func (s DefaultAccountService) NewAccount(req dto.NewAccountRequest) (*dto.NewAccountResponse, *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) GetCustomer ¶
func (s DefaultCustomerService) GetCustomer(id string) (*dto.CustomerResponse, *errs.AppError)
Click to show internal directories.
Click to hide internal directories.