This commit is contained in:
@@ -25,6 +25,10 @@ func (s *SongService) GetAllWithDetails() ([]repository.SongDetail, error) {
|
||||
return s.songRepo.GetAllWithDetails()
|
||||
}
|
||||
|
||||
func (s *SongService) GetByIDWithDetails(id int) (repository.SongDetail, error) {
|
||||
return s.songRepo.GetWithDetails(id)
|
||||
}
|
||||
|
||||
// GetMediaFilePath returns the file path of a song by its song ID.
|
||||
func (s *SongService) GetMediaFile(id int) (model.MediaFile, error) {
|
||||
song, err := s.songRepo.Get(id)
|
||||
|
||||
Reference in New Issue
Block a user