Introduced interfaces for all repositories, completely isolating the persistence layer from the repositories usage and specification
This commit is contained in:
@@ -4,4 +4,9 @@ type MediaFolder struct {
|
||||
Id string
|
||||
Name string
|
||||
Path string
|
||||
}
|
||||
}
|
||||
|
||||
type MediaFolderRepository interface {
|
||||
GetAll() ([]MediaFolder, error)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user