Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Svc ¶
type Svc struct {
// contains filtered or unexported fields
}
Svc is the service for customer related operations
func NewCustomerSvc ¶
NewCustomerSvc creates a new svc instance
func (Svc) CreateCustomer ¶
func (svc Svc) CreateCustomer(cus *domaintype.Customer) (*domaintype.Customer, error)
CreateCustomer creates a new customer
func (Svc) DeleteCustomer ¶
DeleteCustomer deletes a customer
func (Svc) GetAllCustomers ¶
func (svc Svc) GetAllCustomers() []*domaintype.Customer
GetAllCustomers gets all customers
func (Svc) GetCustomer ¶
func (svc Svc) GetCustomer(id string) (*domaintype.Customer, error)
GetCustomer gets a customer by ID
Click to show internal directories.
Click to hide internal directories.