forked from mirrors/homebox
inject defaults + cleanup
This commit is contained in:
parent
9b46ea7874
commit
5f589f95b8
8 changed files with 212 additions and 85 deletions
55
backend/internal/services/service_user_defaults.go
Normal file
55
backend/internal/services/service_user_defaults.go
Normal file
|
@ -0,0 +1,55 @@
|
|||
package services
|
||||
|
||||
import "github.com/hay-kot/content/backend/internal/types"
|
||||
|
||||
func defaultLocations() []types.LocationCreate {
|
||||
return []types.LocationCreate{
|
||||
{
|
||||
Name: "Living Room",
|
||||
},
|
||||
{
|
||||
Name: "Garage",
|
||||
},
|
||||
{
|
||||
Name: "Kitchen",
|
||||
},
|
||||
{
|
||||
Name: "Bedroom",
|
||||
},
|
||||
{
|
||||
Name: "Bathroom",
|
||||
},
|
||||
{
|
||||
Name: "Office",
|
||||
},
|
||||
{
|
||||
Name: "Attic",
|
||||
},
|
||||
{
|
||||
Name: "Basement",
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func defaultLabels() []types.LabelCreate {
|
||||
return []types.LabelCreate{
|
||||
{
|
||||
Name: "Appliances",
|
||||
},
|
||||
{
|
||||
Name: "IOT",
|
||||
},
|
||||
{
|
||||
Name: "Electronics",
|
||||
},
|
||||
{
|
||||
Name: "Servers",
|
||||
},
|
||||
{
|
||||
Name: "General",
|
||||
},
|
||||
{
|
||||
Name: "Important",
|
||||
},
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue