mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-18 21:07:44 +03:00
New Get methods for ArtistIndex
This commit is contained in:
parent
49b512fc9c
commit
ec9398f2bd
@ -22,5 +22,14 @@ func (r *ArtistIndex) Put(m *models.ArtistIndex) error {
|
|||||||
return r.saveOrUpdate(m.Id, m)
|
return r.saveOrUpdate(m.Id, m)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (r*ArtistIndex) Get(id string) (*models.ArtistIndex, error) {
|
||||||
|
entity := &models.ArtistIndex{}
|
||||||
|
err := r.loadEntity(id, entity)
|
||||||
|
return entity, err
|
||||||
|
}
|
||||||
|
|
||||||
|
func (r*ArtistIndex) GetAll() ([]*models.ArtistIndex, error) {
|
||||||
|
return nil, errors.New("Not Implemented")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user