This commit is contained in:
@@ -71,10 +71,18 @@ func (s *LibraryService) GetArtists() ([]model.Artist, error) {
|
||||
return s.repo.GetArtists()
|
||||
}
|
||||
|
||||
func (s *LibraryService) GetArtist(id int) (model.Artist, error) {
|
||||
return s.repo.GetArtist(id)
|
||||
}
|
||||
|
||||
func (s *LibraryService) GetAlbums() ([]model.Album, error) {
|
||||
return s.repo.GetAlbums()
|
||||
}
|
||||
|
||||
func (s *LibraryService) GetAlbum(id int) (model.Album, error) {
|
||||
return s.repo.GetAlbum(id)
|
||||
}
|
||||
|
||||
func (s *LibraryService) Scan(id int) (*ScanReport, error) {
|
||||
lib, err := s.repo.GetByID(id)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user