customer

package
v0.0.0-...-13e9ea1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 4 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 struct {
	// contains filtered or unexported fields
}

func NewCustomerService

func NewCustomerService(db *pgxpool.Pool) CustomerService

func (*CustomerService) Create

func (cs *CustomerService) Create(customer entity.Customer) error

func (*CustomerService) Delete

func (cs *CustomerService) Delete(id string) error

func (*CustomerService) GetAll

func (cs *CustomerService) GetAll() ([]entity.Customer, error)

add limit and offset

func (*CustomerService) GetByEmailAndPassword

func (cs *CustomerService) GetByEmailAndPassword(email string, password string) (entity.Customer, error)

func (*CustomerService) GetById

func (cs *CustomerService) GetById(id string) (entity.Customer, error)

func (*CustomerService) GetByUsername

func (cs *CustomerService) GetByUsername(username string) (entity.Customer, error)

func (*CustomerService) Update

func (cs *CustomerService) Update(customer entity.Customer) error

Jump to

Keyboard shortcuts

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