mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-10 11:32:48 +02:00
24 lines
605 B
Go
24 lines
605 B
Go
package persistence
|
|
|
|
import (
|
|
"github.com/astaxie/beego"
|
|
"github.com/deluan/gosonic/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: beego.AppConfig.String("musicFolder")}
|
|
result := make(domain.MediaFolders, 1)
|
|
result[0] = mediaFolder
|
|
return &result, nil
|
|
}
|
|
|
|
var _ domain.MediaFolderRepository = (*mediaFolderRepository)(nil)
|