feat: cache album tracks and load album artists on album fetch

- Add SaveAlbumTracks to TrackRepository for batch track caching
- Extend album loadRelations to join album_artists with artist data
- Cache album tracks in GetAlbumTracks after provider fetch
- Ensure artists cached when fetching single album
This commit is contained in:
Alexander
2026-05-09 19:28:44 +02:00
parent 9f1318e79e
commit 88372c9301
7 changed files with 131 additions and 6 deletions
+4
View File
@@ -72,3 +72,7 @@ func (r *noopTrackRepo) GetByAlbumID(ctx context.Context, albumID string) ([]dom
func (r *noopTrackRepo) Save(ctx context.Context, track *domain.Track) error {
return nil
}
func (r *noopTrackRepo) SaveAlbumTracks(ctx context.Context, albumID string, tracks []domain.Track) error {
return nil
}