homebox/backend/internal/services/all.go

16 lines
289 B
Go
Raw Normal View History

2022-08-30 02:30:36 +00:00
package services
2022-08-30 02:40:54 +00:00
import "github.com/hay-kot/content/backend/internal/repo"
2022-08-30 02:30:36 +00:00
type AllServices struct {
User *UserService
Admin *AdminService
}
func NewServices(repos *repo.AllRepos) *AllServices {
return &AllServices{
User: &UserService{repos},
Admin: &AdminService{repos},
}
}