forked from mirrors/homebox
refactor: repositories (#28)
* cleanup unnecessary mocks * refactor document storage location * remove unused function * move ownership to document types to repo package * move types and mappers to repo package * refactor sets to own package
This commit is contained in:
parent
2e82398e5c
commit
343290a55a
79 changed files with 3169 additions and 3160 deletions
|
@ -1,9 +1,11 @@
|
|||
package services
|
||||
|
||||
import "github.com/hay-kot/homebox/backend/internal/types"
|
||||
import (
|
||||
"github.com/hay-kot/homebox/backend/internal/repo"
|
||||
)
|
||||
|
||||
func defaultLocations() []types.LocationCreate {
|
||||
return []types.LocationCreate{
|
||||
func defaultLocations() []repo.LocationCreate {
|
||||
return []repo.LocationCreate{
|
||||
{
|
||||
Name: "Living Room",
|
||||
},
|
||||
|
@ -31,8 +33,8 @@ func defaultLocations() []types.LocationCreate {
|
|||
}
|
||||
}
|
||||
|
||||
func defaultLabels() []types.LabelCreate {
|
||||
return []types.LabelCreate{
|
||||
func defaultLabels() []repo.LabelCreate {
|
||||
return []repo.LabelCreate{
|
||||
{
|
||||
Name: "Appliances",
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue