mirror of
https://github.com/navidrome/navidrome.git
synced 2024-08-28 13:31:28 +02:00
24 lines
612 B
Go
24 lines
612 B
Go
package persistence
|
|
|
|
import (
|
|
"github.com/cloudsonic/sonic-server/conf"
|
|
"github.com/cloudsonic/sonic-server/domain"
|
|
)
|
|
|
|
type mediaFolderRepository struct {
|
|
domain.MediaFolderRepository
|
|
}
|
|
|
|
func NewMediaFolderRepository() domain.MediaFolderRepository {
|
|
return &mediaFolderRepository{}
|
|
}
|
|
|
|
func (*mediaFolderRepository) GetAll() (domain.MediaFolders, error) {
|
|
mediaFolder := domain.MediaFolder{ID: "0", Name: "iTunes Library", Path: conf.Sonic.MusicFolder}
|
|
result := make(domain.MediaFolders, 1)
|
|
result[0] = mediaFolder
|
|
return result, nil
|
|
}
|
|
|
|
var _ domain.MediaFolderRepository = (*mediaFolderRepository)(nil)
|