Documentation ¶
Index ¶
- type CustomerService
- func (cs *CustomerService) Create(customer entity.Customer) error
- func (cs *CustomerService) Delete(id string) error
- func (cs *CustomerService) GetAll() ([]entity.Customer, error)
- func (cs *CustomerService) GetByEmailAndPassword(email string, password string) (entity.Customer, error)
- func (cs *CustomerService) GetById(id string) (entity.Customer, error)
- func (cs *CustomerService) GetByUsername(username string) (entity.Customer, error)
- func (cs *CustomerService) Update(customer entity.Customer) error
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) 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 (*CustomerService) GetById ¶
func (cs *CustomerService) GetById(id string) (entity.Customer, error)
func (*CustomerService) GetByUsername ¶
func (cs *CustomerService) GetByUsername(username string) (entity.Customer, error)
Click to show internal directories.
Click to hide internal directories.