Integrate unfinished server-rs refactor worklists
This commit is contained in:
@@ -1,3 +1,27 @@
|
||||
//! 拼图领域事件过渡落位。
|
||||
//!
|
||||
//! 用于表达草稿变化、作品发布、运行态推进和排行榜候选产生等事实。
|
||||
|
||||
/// 拼图领域事件。
|
||||
///
|
||||
/// 事件只描述已经发生的领域事实,持久化、订阅投影和 HTTP/SSE 通知
|
||||
/// 均由 SpacetimeDB adapter 或 BFF 决定。
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub enum PuzzleDomainEvent {
|
||||
DraftChanged {
|
||||
session_id: String,
|
||||
owner_user_id: String,
|
||||
occurred_at_micros: i64,
|
||||
},
|
||||
WorkPublished {
|
||||
profile_id: String,
|
||||
owner_user_id: String,
|
||||
occurred_at_micros: i64,
|
||||
},
|
||||
RunAdvanced {
|
||||
run_id: String,
|
||||
owner_user_id: String,
|
||||
level_index: u32,
|
||||
occurred_at_micros: i64,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user