application: schedule bounded context
This commit is contained in:
12
crates/application/src/schedule/commands.rs
Normal file
12
crates/application/src/schedule/commands.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use uuid::Uuid;
|
||||
|
||||
/// Generate a new schedule for a channel.
|
||||
pub struct GenerateScheduleCommand {
|
||||
pub channel_id: Uuid,
|
||||
}
|
||||
|
||||
/// Delete all schedules with generation > target_generation for a channel.
|
||||
pub struct DeleteSchedulesAfterCommand {
|
||||
pub channel_id: Uuid,
|
||||
pub target_generation: u32,
|
||||
}
|
||||
Reference in New Issue
Block a user