mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-16 21:58:40 +00:00
95ab14b866
* format readme * update logo * format html * add logo to docs * repository for document and document tokens * add attachments type and repository * autogenerate types via scripts * use autogenerated types * attachment type updates * add insured and quantity fields for items * implement HasID interface for entities * implement label updates for items * implement service update method * WIP item update client side actions * check err on attachment * finish types for basic items editor * remove unused var * house keeping
24 lines
523 B
Go
24 lines
523 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{
|
|
repo: repos,
|
|
filepath: "/tmp/content",
|
|
},
|
|
}
|
|
}
|