service

package
v0.0.0-...-e41ca22 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

customersService

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomersService

type CustomersService struct {
	Customers []model.Customer
}

func NewCustomers

func NewCustomers() *CustomersService

func (*CustomersService) AddCustomer

func (cs *CustomersService) AddCustomer(name string, gender string, age int, phone string, email string)

func (*CustomersService) DeleteId

func (cs *CustomersService) DeleteId(id int)

func (*CustomersService) GetById

func (cs *CustomersService) GetById(id int) int

func (*CustomersService) List

func (cs *CustomersService) List() []model.Customer

func (*CustomersService) LoadCustomer

func (cs *CustomersService) LoadCustomer()

func (*CustomersService) SaveCustomer

func (cs *CustomersService) SaveCustomer()

Jump to

Keyboard shortcuts

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