mirror of
https://github.com/navidrome/navidrome.git
synced 2024-09-10 11:32:48 +02:00
19 lines
316 B
Go
19 lines
316 B
Go
package repositories
|
|
|
|
import (
|
|
"github.com/deluan/gosonic/models"
|
|
)
|
|
|
|
type MediaFile struct {
|
|
BaseRepository
|
|
}
|
|
|
|
func NewMediaFileRepository() *MediaFile {
|
|
r := &MediaFile{}
|
|
r.init("mediafile", &models.MediaFile{})
|
|
return r
|
|
}
|
|
|
|
func (r *MediaFile) Put(m *models.MediaFile) error {
|
|
return r.saveOrUpdate(m.Id, m)
|
|
} |