service

package
v0.0.0-...-ff54fb6 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 4 Imported by: 0

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 (DefaultAccountService) NewAccount

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

Jump to

Keyboard shortcuts

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