application: channels bounded context

CQRS use cases (create/update/delete/get/list/list_by_owner),
ownership checks, auto-snapshot on config change.
Channel setters added to domain model.
This commit is contained in:
2026-07-12 01:57:38 +02:00
parent 2976600d12
commit 6fd47f2d93
18 changed files with 909 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
use std::sync::Arc;
use domain::ports::{ChannelCommand, ChannelQuery, EventPublisher};
/// Dependencies for channel write use cases (create, update, delete).
pub struct ChannelCommandDeps {
pub channel_command: Arc<dyn ChannelCommand>,
pub channel_query: Arc<dyn ChannelQuery>,
pub event_publisher: Arc<dyn EventPublisher>,
}
/// Dependencies for channel read use cases (get, list, list_by_owner).
pub struct ChannelQueryDeps {
pub channel_query: Arc<dyn ChannelQuery>,
}