use serde::{Deserialize, Serialize}; use uuid::Uuid; #[derive(Debug, Deserialize, utoipa::ToSchema)] pub struct BatchTagRequest { pub media_ids: Vec, pub tag_ids: Vec, } #[derive(Debug, Deserialize, utoipa::ToSchema)] pub struct BatchCollectionRequest { pub media_ids: Vec, pub collection_id: Uuid, } #[derive(Debug, Deserialize, utoipa::ToSchema)] pub struct BatchDeleteRequest { pub media_ids: Vec, } #[derive(Debug, Deserialize, utoipa::ToSchema)] pub struct BatchUpdateRequest { pub media_ids: Vec, pub title: Option, pub artist: Option, pub album: Option, pub genre: Option, pub year: Option, pub description: Option, } #[derive(Debug, Serialize, utoipa::ToSchema)] pub struct BatchOperationResponse { pub processed: usize, pub errors: Vec, }