Documentation ¶
Index ¶
- type CustomerService
- type DefaultCustomerService
- func (service DefaultCustomerService) GetAllCustomer() ([]dto.CustomerResponse, *errs.AppError)
- func (service DefaultCustomerService) GetAllCustomerByStatus(status string) ([]dto.CustomerResponse, *errs.AppError)
- func (service DefaultCustomerService) GetCustomerByID(id string) (*dto.CustomerResponse, *errs.AppError)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerService ¶
type CustomerService interface { GetAllCustomer() ([]dto.CustomerResponse, *errs.AppError) GetCustomerByID(id string) (*dto.CustomerResponse, *errs.AppError) GetAllCustomerByStatus(status string) ([]dto.CustomerResponse, *errs.AppError) }
type DefaultCustomerService ¶
type DefaultCustomerService struct {
// contains filtered or unexported fields
}
func NewDefaultCustomerService ¶
func NewDefaultCustomerService(repo domain.Repository) DefaultCustomerService
func (DefaultCustomerService) GetAllCustomer ¶
func (service DefaultCustomerService) GetAllCustomer() ([]dto.CustomerResponse, *errs.AppError)
func (DefaultCustomerService) GetAllCustomerByStatus ¶
func (service DefaultCustomerService) GetAllCustomerByStatus(status string) ([]dto.CustomerResponse, *errs.AppError)
func (DefaultCustomerService) GetCustomerByID ¶
func (service DefaultCustomerService) GetCustomerByID(id string) (*dto.CustomerResponse, *errs.AppError)
Click to show internal directories.
Click to hide internal directories.