homebox/backend/internal/core/services/all.go
Hayden cd82fe0d89
refactor: remove empty services (#116)
* remove empty services

* remove old factory

* remove old static files

* cleanup more duplicate service code

* file/folder reorg
2022-10-29 20:05:38 -08:00

24 lines
433 B
Go

package services
import "github.com/hay-kot/homebox/backend/internal/data/repo"
type AllServices struct {
User *UserService
Group *GroupService
Items *ItemService
}
func New(repos *repo.AllRepos) *AllServices {
if repos == nil {
panic("repos cannot be nil")
}
return &AllServices{
User: &UserService{repos},
Group: &GroupService{repos},
Items: &ItemService{
repo: repos,
at: attachmentTokens{},
},
}
}