添加详情接口
All checks were successful
Go CI / test-and-build (push) Successful in 11s

This commit is contained in:
2026-04-07 16:08:02 +08:00
parent c5102e608d
commit 02efb9972a
5 changed files with 53 additions and 2 deletions

View File

@@ -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)