service

package
v0.0.0-...-6f5366b Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 6 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 {
	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) Add

func (service *CustomerServiceImpl) Add(c entity.Customer) string

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

func (*CustomerServiceImpl) Update

func (service *CustomerServiceImpl) Update(c entity.Customer) string

Jump to

Keyboard shortcuts

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