pgsql

package
v0.0.0-...-fd95499 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store ...

func New

func New(db *database.DB) *Store

New ...

func (*Store) CheckClientAttachment

func (s *Store) CheckClientAttachment(employeeID, clientID string) (bool, error)

CheckClientAttachment ...

func (*Store) EmployeeList

func (s *Store) EmployeeList() ([]*model.Employee, error)

EmployeeList get all employees

func (*Store) EmployeesNames

func (s *Store) EmployeesNames(employees []*model.Employee) ([]*model.Employee, error)

EmployeesNames ...

func (*Store) FindClients

func (s *Store) FindClients(employeeID string) ([]*model.Client, error)

FindClients find all clients

func (*Store) LessonCanceled

func (s *Store) LessonCanceled(employeeID string, dateTime time.Time) error

LessonCanceled canceled lesson

func (*Store) LessonIsBusy

func (s *Store) LessonIsBusy(employeeID string, dateTime time.Time) (bool, error)

LessonIsBusy ...

func (*Store) LessonsList

func (s *Store) LessonsList() ([]*model.Employment, error)

LessonsList get all lessons

func (*Store) LessonsListByEmployeeID

func (s *Store) LessonsListByEmployeeID(employeeID string) ([]*model.Employment, error)

LessonsListByEmployeeID Get a list of your classes: date, client name

func (*Store) LessonsListByEmployeeIDAndClientID

func (s *Store) LessonsListByEmployeeIDAndClientID(employeeID, clientID string) ([]*model.Shedule, error)

LessonsListByEmployeeIDAndClientID ...

func (*Store) SetLesson

func (s *Store) SetLesson(employeeID, clientID string, dateTime time.Time) error

SetLesson Schedule an activity with your client. Recording is possible at any time, including non-working

Jump to

Keyboard shortcuts

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