Rename MediaFolder to Library

This commit is contained in:
Deluan
2024-05-07 17:28:44 +02:00
committed by Deluan Quintão
parent 6f2643e55e
commit 081ef85db6
10 changed files with 92 additions and 94 deletions
+23
View File
@@ -0,0 +1,23 @@
package model
import (
"io/fs"
"os"
)
type Library struct {
ID int32
Name string
Path string
}
func (f Library) FS() fs.FS {
return os.DirFS(f.Path)
}
type Libraries []Library
type LibraryRepository interface {
Get(id int32) (*Library, error)
GetAll() (Libraries, error)
}