Documentation ¶
Index ¶
- type CustomerService
- type CustomerServiceImpl
- func (service *CustomerServiceImpl) Add(c entity.Customer) string
- func (service *CustomerServiceImpl) Delete(id string) string
- func (service *CustomerServiceImpl) Find(id string) entity.Customer
- func (service *CustomerServiceImpl) FindAll() []entity.Customer
- func (service *CustomerServiceImpl) Update(c entity.Customer) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerService ¶
type CustomerService interface { Find(string) entity.Customer FindAll() []entity.Customer Add(entity.Customer) string Update(entity.Customer) string Delete(string) string }
func New ¶
func New() CustomerService
type CustomerServiceImpl ¶
type CustomerServiceImpl struct {
// contains filtered or unexported fields
}
func (*CustomerServiceImpl) Delete ¶
func (service *CustomerServiceImpl) Delete(id string) string
func (*CustomerServiceImpl) Find ¶
func (service *CustomerServiceImpl) Find(id string) entity.Customer
func (*CustomerServiceImpl) FindAll ¶
func (service *CustomerServiceImpl) FindAll() []entity.Customer
Click to show internal directories.
Click to hide internal directories.