service

package
v0.0.0-...-c7bd0a4 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Repo repo.RepoInterface
}

func NewService

func NewService(repo repo.RepoInterface) *Service

func (*Service) ActivateEmployee

func (s *Service) ActivateEmployee(ctx context.Context, employeeID *string, hireDate time.Time) error

func (*Service) AddEmployeeSkill

func (s *Service) AddEmployeeSkill(ctx context.Context, employeeID, skillID, note *string, xp int) error

func (*Service) CreateEmployee

func (s *Service) CreateEmployee(ctx context.Context, name, position, email, password, presentation string, hireDate time.Time) (*string, error)

func (*Service) CreateSkill

func (s *Service) CreateSkill(ctx context.Context, name string) (*string, error)

func (*Service) DeactivateEmployee

func (s *Service) DeactivateEmployee(ctx context.Context, employeeID *string, terminationDate time.Time) error

func (*Service) DeleteEmployeeSkills

func (s *Service) DeleteEmployeeSkills(ctx context.Context, employeeID *string) error

NOTE: temporary

func (*Service) FindEmployee

func (s *Service) FindEmployee(ctx context.Context, employeeID *string) (*entity.Employee, error)

func (*Service) FindSkill

func (s *Service) FindSkill(ctx context.Context, skillID *string) (*entity.Skill, error)

func (*Service) SearchEmployees

func (s *Service) SearchEmployees(ctx context.Context, query *string) ([]*entity.Employee, error)

func (*Service) UpdateEmployee

func (s *Service) UpdateEmployee(ctx context.Context, employeeID, name, position, email, presentation string, hireDate time.Time) error

Jump to

Keyboard shortcuts

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