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

@@ -53,6 +53,13 @@ pub trait SongRepositoryPort: Send + Sync {
async fn list(&self) -> Result<Vec<SongSummary>, RepositoryError>;
async fn get(&self, id: Uuid) -> Result<Option<Song>, RepositoryError>;
async fn delete(&self, id: Uuid) -> Result<(), RepositoryError>;
async fn update_meta(
&self,
id: Uuid,
title: Option<&str>,
artist: Option<&str>,
original_key: Option<&str>,
) -> Result<SongSummary, RepositoryError>;
}
#[async_trait]