feat: add update_meta to SongRepositoryPort and PATCH /songs/{id}

This commit is contained in:
2026-04-08 03:39:29 +02:00
parent 6a3cdbe4c3
commit 1936ced395
4 changed files with 98 additions and 5 deletions

View File

@@ -25,6 +25,16 @@ impl SongService {
pub async fn delete(&self, id: Uuid) -> Result<(), RepositoryError> {
self.repo.delete(id).await
}
pub async fn update_meta(
&self,
id: Uuid,
title: Option<&str>,
artist: Option<&str>,
original_key: Option<&str>,
) -> Result<domain::SongSummary, domain::RepositoryError> {
self.repo.update_meta(id, title, artist, original_key).await
}
}
pub struct SongSearchService {