mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-16 21:58:40 +00:00
461be2afca
* initial UI for currency selection * add task to purge invitation tokens * group API contracts * fix type import * use auth middleware * add currency setting support (UI) * use group settings for format currency * fix casing
28 lines
565 B
Go
28 lines
565 B
Go
package services
|
|
|
|
import "github.com/hay-kot/homebox/backend/internal/repo"
|
|
|
|
type AllServices struct {
|
|
User *UserService
|
|
Group *GroupService
|
|
Location *LocationService
|
|
Labels *LabelService
|
|
Items *ItemService
|
|
}
|
|
|
|
func New(repos *repo.AllRepos) *AllServices {
|
|
if repos == nil {
|
|
panic("repos cannot be nil")
|
|
}
|
|
|
|
return &AllServices{
|
|
User: &UserService{repos},
|
|
Group: &GroupService{repos},
|
|
Location: &LocationService{repos},
|
|
Labels: &LabelService{repos},
|
|
Items: &ItemService{
|
|
repo: repos,
|
|
at: attachmentTokens{},
|
|
},
|
|
}
|
|
}
|