完善 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 @@
//! 自定义世界应用编排过渡落位。
//!
//! 这里只组合领域规则并返回草稿、发布门禁、投影刷新等结果或事件。

View File

@@ -0,0 +1,3 @@
//! 自定义世界写入命令过渡落位。
//!
//! 用于表达会话创建、消息写入、草稿更新、发布和下架等用例输入。

View File

@@ -0,0 +1,4 @@
//! 自定义世界领域模型过渡落位。
//!
//! 后续迁移 profile、Agent 会话、草稿卡、发布门禁和画廊投影规则时,
//! 只保留纯领域结构LLM 推理、SSE 和 OSS 均留在外层 adapter。

View File

@@ -0,0 +1,3 @@
//! 自定义世界领域错误过渡落位。
//!
//! 错误只表达世界创作规则失败,由 adapter 显式映射为 HTTP 或 reducer 错误。

View File

@@ -0,0 +1,3 @@
//! 自定义世界领域事件过渡落位。
//!
//! 用于表达草稿变化、profile 发布、画廊投影刷新和 Agent 操作进度变化。

View File

@@ -1,3 +1,9 @@
mod application;
mod commands;
mod domain;
mod errors;
mod events;
use std::{error::Error, fmt};
use serde::{Deserialize, Serialize};