mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-17 14:18:43 +00:00
21 lines
479 B
Go
21 lines
479 B
Go
package services
|
|
|
|
import "github.com/hay-kot/content/backend/internal/repo"
|
|
|
|
type AllServices struct {
|
|
User *UserService
|
|
Admin *AdminService
|
|
Location *LocationService
|
|
Labels *LabelService
|
|
Items *ItemService
|
|
}
|
|
|
|
func NewServices(repos *repo.AllRepos) *AllServices {
|
|
return &AllServices{
|
|
User: &UserService{repos},
|
|
Admin: &AdminService{repos},
|
|
Location: &LocationService{repos},
|
|
Labels: &LabelService{repos},
|
|
Items: &ItemService{repos},
|
|
}
|
|
}
|