fix domain ports: add EventConsumer, use ID newtypes

This commit is contained in:
2026-07-12 01:27:38 +02:00
parent 0166e829c1
commit 6d12ac4c5e
4 changed files with 12 additions and 7 deletions

View File

@@ -4,11 +4,9 @@ use std::collections::HashMap;
use async_trait::async_trait;
use chrono::{DateTime, Utc};
use uuid::Uuid;
use crate::errors::DomainResult;
use crate::models::{GeneratedSchedule, PlaybackRecord};
use crate::value_objects::{BlockId, ChannelId, MediaItemId};
use crate::value_objects::{BlockId, ChannelId, MediaItemId, ScheduleId};
/// Write-side port for schedule and playback persistence.
#[async_trait]
@@ -71,6 +69,6 @@ pub trait ScheduleQuery: Send + Sync {
async fn get_schedule_by_id(
&self,
channel_id: ChannelId,
schedule_id: Uuid,
schedule_id: ScheduleId,
) -> DomainResult<Option<GeneratedSchedule>>;
}