New Get methods for ArtistIndex
This commit is contained in:
parent
49b512fc9c
commit
ec9398f2bd
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Reference in a new issue