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,28 +1,22 @@
use uuid::Uuid;
/// Fetch the schedule whose validity window contains `now`.
pub struct GetActiveScheduleQuery {
pub channel_id: Uuid,
}
/// Determine what is currently broadcasting on a channel.
pub struct GetCurrentBroadcastQuery {
pub channel_id: Uuid,
}
/// Return EPG (electronic program guide) data for a channel.
pub struct GetEpgQuery {
pub channel_id: Uuid,
}
/// Get a playback URL for a specific media item on a channel.
pub struct GetStreamUrlQuery {
pub channel_id: Uuid,
/// MediaItemId as string (e.g. "jellyfin::abc123").
pub item_id: String,
}
/// List all generated schedule headers for a channel.
pub struct ListHistoryQuery {
pub channel_id: Uuid,
}