26 lines
660 B
Rust
26 lines
660 B
Rust
//! 方洞挑战领域事件。
|
|
//!
|
|
//! 事件只表达已经发生的领域事实,是否持久化、投影或通知前端由
|
|
//! SpacetimeDB adapter 与 BFF 编排层决定。
|
|
|
|
/// 方洞挑战领域事件。
|
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
|
pub enum SquareHoleDomainEvent {
|
|
DraftCompiled {
|
|
profile_id: String,
|
|
owner_user_id: String,
|
|
occurred_at_micros: i64,
|
|
},
|
|
WorkPublished {
|
|
profile_id: String,
|
|
owner_user_id: String,
|
|
occurred_at_micros: i64,
|
|
},
|
|
RunSettled {
|
|
run_id: String,
|
|
owner_user_id: String,
|
|
status: String,
|
|
occurred_at_micros: i64,
|
|
},
|
|
}
|