32 lines
792 B
Rust
32 lines
792 B
Rust
//! 拼消消领域事件。
|
|
//!
|
|
//! 事件只表达已经发生的领域事实,持久化、统计投影和前端通知由
|
|
//! SpacetimeDB adapter 与 BFF 编排层决定。
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
|
pub enum PuzzleClearDomainEvent {
|
|
DraftCompiled {
|
|
profile_id: String,
|
|
owner_user_id: String,
|
|
occurred_at_micros: i64,
|
|
},
|
|
WorkPublished {
|
|
profile_id: String,
|
|
owner_user_id: String,
|
|
occurred_at_micros: i64,
|
|
},
|
|
LevelCleared {
|
|
run_id: String,
|
|
owner_user_id: String,
|
|
level_index: u32,
|
|
clears_done: u32,
|
|
occurred_at_micros: i64,
|
|
},
|
|
RunSettled {
|
|
run_id: String,
|
|
owner_user_id: String,
|
|
status: String,
|
|
occurred_at_micros: i64,
|
|
},
|
|
}
|