feat: add update_meta to SongRepositoryPort and PATCH /songs/{id}
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user