27 lines
520 B
Go
27 lines
520 B
Go
package service
|
|
|
|
import (
|
|
"git.roboces.dev/catalin/cvvvvv/internal/config"
|
|
"git.roboces.dev/catalin/cvvvvv/internal/domain"
|
|
"git.roboces.dev/catalin/cvvvvv/internal/repo"
|
|
)
|
|
|
|
type Services struct {
|
|
Resumes Resumes
|
|
Config *config.Config
|
|
}
|
|
|
|
type Deps struct {
|
|
Repos *repo.Repos
|
|
Config *config.Config
|
|
}
|
|
|
|
func NewServices(deps Deps) *Services {
|
|
resumeService := NewResumesService(deps.Repos.Resumes)
|
|
|
|
return &Services{Resumes: resumeService, Config: deps.Config}
|
|
}
|
|
|
|
type Resumes interface {
|
|
Get() domain.Resume
|
|
}
|