mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
23 lines
612 B
Go
23 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)
|