完善 server-rs DDD 重构计划与骨架

This commit is contained in:
Codex
2026-04-29 11:51:30 +08:00
parent 39200ea9cc
commit aa2e9b36d7
98 changed files with 1261 additions and 11 deletions

View File

@@ -0,0 +1,3 @@
//! runtime story 兼容应用编排过渡落位。
//!
//! 这里只组合旧规则并返回兼容结果真实保存、SSE 和模型调用由外层完成。

View File

@@ -0,0 +1,3 @@
//! runtime story 兼容写入命令过渡落位。
//!
//! 用于表达旧剧情动作解析、战斗动作、锻造动作和 NPC 互动等输入。

View File

@@ -0,0 +1,4 @@
//! runtime story 兼容领域模型过渡落位。
//!
//! 当前 crate 用于旧运行时剧情桥的纯规则兼容。后续迁移时仍只能保留 JSON 规则、
//! 选项生成和视图模型转换,不引入 Axum、LLM 或 SpacetimeDB。

View File

@@ -0,0 +1,3 @@
//! runtime story 兼容领域错误过渡落位。
//!
//! 错误只表达兼容规则失败,不能直接绑定 HTTP 或数据库错误模型。

View File

@@ -0,0 +1,3 @@
//! runtime story 兼容领域事件过渡落位。
//!
//! 用于表达旧剧情快照变化、战斗表现变化和物品/成长待同步等事实。

View File

@@ -1,3 +1,9 @@
mod application;
mod commands;
mod domain;
mod errors;
mod events;
use serde_json::Value;
use shared_contracts::runtime_story::{
RuntimeBattlePresentation, RuntimeStoryActionRequest, RuntimeStoryOptionView,