service

package
v0.0.0-...-0d30e1c Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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