mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-10 11:32:48 +02:00
20 lines
464 B
Go
20 lines
464 B
Go
package repositories
|
|
|
|
import (
|
|
"github.com/deluan/gosonic/models"
|
|
"github.com/astaxie/beego"
|
|
)
|
|
|
|
type MediaFolder struct {}
|
|
|
|
func NewMediaFolderRepository() *MediaFolder {
|
|
return &MediaFolder{}
|
|
}
|
|
|
|
|
|
func (*MediaFolder) GetAll() ([]*models.MediaFolder, error) {
|
|
mediaFolder := models.MediaFolder{Id: "0", Name: "iTunes Library", Path: beego.AppConfig.String("musicFolder")}
|
|
result := make([]*models.MediaFolder, 1)
|
|
result[0] = &mediaFolder
|
|
return result, nil
|
|
} |