feat: add WrapUpRequested/Completed domain events

This commit is contained in:
2026-06-02 22:06:06 +02:00
parent 5a6abdcc23
commit 59b42ce810
2 changed files with 63 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ use chrono::NaiveDateTime;
use crate::{
errors::DomainError,
value_objects::{ExternalMetadataId, MovieId, PosterPath, Rating, ReviewId, UserId},
value_objects::{ExternalMetadataId, MovieId, PosterPath, Rating, ReviewId, UserId, WrapUpId},
};
#[derive(Clone, Debug)]
@@ -75,6 +75,15 @@ pub enum DomainEvent {
title: String,
source: String,
},
WrapUpRequested {
wrapup_id: WrapUpId,
user_id: Option<UserId>,
start_date: chrono::NaiveDate,
end_date: chrono::NaiveDate,
},
WrapUpCompleted {
wrapup_id: WrapUpId,
},
}
#[async_trait]