Documentation
¶
Index ¶
- type Service
- func (s *Service) ActivateEmployee(ctx context.Context, employeeID *string, hireDate time.Time) error
- func (s *Service) AddEmployeeSkill(ctx context.Context, employeeID, skillID, note *string, xp int) error
- func (s *Service) CreateEmployee(ctx context.Context, name, position, email, password, presentation string, ...) (*string, error)
- func (s *Service) CreateSkill(ctx context.Context, name string) (*string, error)
- func (s *Service) DeactivateEmployee(ctx context.Context, employeeID *string, terminationDate time.Time) error
- func (s *Service) DeleteEmployeeSkills(ctx context.Context, employeeID *string) error
- func (s *Service) FindEmployee(ctx context.Context, employeeID *string) (*entity.Employee, error)
- func (s *Service) FindSkill(ctx context.Context, skillID *string) (*entity.Skill, error)
- func (s *Service) SearchEmployees(ctx context.Context, query *string) ([]*entity.Employee, error)
- func (s *Service) UpdateEmployee(ctx context.Context, employeeID, name, position, email, presentation string, ...) error
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 (*Service) AddEmployeeSkill ¶
func (*Service) CreateEmployee ¶
func (*Service) CreateSkill ¶
func (*Service) DeactivateEmployee ¶
func (*Service) DeleteEmployeeSkills ¶
NOTE: temporary
func (*Service) FindEmployee ¶
func (*Service) SearchEmployees ¶
Click to show internal directories.
Click to hide internal directories.