Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountService ¶
type AccountService interface {
AddNewAccount(dto.NewAccountRequest) (*dto.AccountResponse, *errs.AppError)
}
type CustomerService ¶
type CustomerService interface { GetAllCustomers(string) ([]dto.CustomerResponse, *errs.AppError) GetCustomer(string) (*dto.CustomerResponse, *errs.AppError) }
type DefaultAccountService ¶
type DefaultAccountService struct {
// contains filtered or unexported fields
}
func NewAccountService ¶
func NewAccountService(repository domain.AccountRepository) DefaultAccountService
func (DefaultAccountService) AddNewAccount ¶
func (s DefaultAccountService) AddNewAccount(a dto.NewAccountRequest) (*dto.AccountResponse, *errs.AppError)
type DefaultCustomerService ¶
type DefaultCustomerService struct {
// contains filtered or unexported fields
}
func NewCustomerService ¶
func NewCustomerService(repository domain.CustomerRepository) DefaultCustomerService
func (DefaultCustomerService) GetAllCustomers ¶
func (s DefaultCustomerService) GetAllCustomers(status string) ([]dto.CustomerResponse, *errs.AppError)
func (DefaultCustomerService) GetCustomer ¶
func (s DefaultCustomerService) GetCustomer(id string) (*dto.CustomerResponse, *errs.AppError)
type DefaultTranscationService ¶
type DefaultTranscationService struct {
// contains filtered or unexported fields
}
func NewTransactionService ¶
func NewTransactionService(repository domain.TransactionRepository) DefaultTranscationService
func (DefaultTranscationService) WithdrawTransaction ¶
func (s DefaultTranscationService) WithdrawTransaction(a dto.TransactionRequest) (*dto.TransactionResponse, *errs.AppError)
type TranscationService ¶
type TranscationService interface {
WithdrawTransaction(dto.TransactionRequest) (*dto.TransactionResponse, *errs.AppError)
}
Click to show internal directories.
Click to hide internal directories.