refactor(application): strip comments, DRY ownership check + parse_content_type

This commit is contained in:
2026-07-12 04:10:58 +02:00
parent 98a54245b1
commit 9dcd169689
62 changed files with 56 additions and 203 deletions

View File

@@ -1,4 +1,3 @@
/// Search library items with filters.
pub struct SearchItemsQuery {
pub provider_id: Option<String>,
pub content_type: Option<String>,
@@ -12,34 +11,28 @@ pub struct SearchItemsQuery {
pub limit: u32,
}
/// List library collections.
pub struct ListCollectionsQuery {
pub provider_id: Option<String>,
}
/// List TV show summaries.
pub struct ListShowsQuery {
pub provider_id: Option<String>,
pub search_term: Option<String>,
pub genres: Vec<String>,
}
/// List seasons for a specific series.
pub struct ListSeasonsQuery {
pub series_name: String,
pub provider_id: Option<String>,
}
/// List genres available in the library.
pub struct ListGenresQuery {
pub content_type: Option<String>,
pub provider_id: Option<String>,
}
/// Get a single library item by its composite ID.
pub struct GetItemQuery {
pub item_id: String,
}
/// Get the latest sync status per provider.
pub struct GetSyncStatusQuery;