完善 server-rs DDD 重构计划与骨架
This commit is contained in:
3
server-rs/crates/module-custom-world/src/application.rs
Normal file
3
server-rs/crates/module-custom-world/src/application.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
//! 自定义世界应用编排过渡落位。
|
||||
//!
|
||||
//! 这里只组合领域规则并返回草稿、发布门禁、投影刷新等结果或事件。
|
||||
3
server-rs/crates/module-custom-world/src/commands.rs
Normal file
3
server-rs/crates/module-custom-world/src/commands.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
//! 自定义世界写入命令过渡落位。
|
||||
//!
|
||||
//! 用于表达会话创建、消息写入、草稿更新、发布和下架等用例输入。
|
||||
4
server-rs/crates/module-custom-world/src/domain.rs
Normal file
4
server-rs/crates/module-custom-world/src/domain.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
//! 自定义世界领域模型过渡落位。
|
||||
//!
|
||||
//! 后续迁移 profile、Agent 会话、草稿卡、发布门禁和画廊投影规则时,
|
||||
//! 只保留纯领域结构;LLM 推理、SSE 和 OSS 均留在外层 adapter。
|
||||
3
server-rs/crates/module-custom-world/src/errors.rs
Normal file
3
server-rs/crates/module-custom-world/src/errors.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
//! 自定义世界领域错误过渡落位。
|
||||
//!
|
||||
//! 错误只表达世界创作规则失败,由 adapter 显式映射为 HTTP 或 reducer 错误。
|
||||
3
server-rs/crates/module-custom-world/src/events.rs
Normal file
3
server-rs/crates/module-custom-world/src/events.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
//! 自定义世界领域事件过渡落位。
|
||||
//!
|
||||
//! 用于表达草稿变化、profile 发布、画廊投影刷新和 Agent 操作进度变化。
|
||||
@@ -1,3 +1,9 @@
|
||||
mod application;
|
||||
mod commands;
|
||||
mod domain;
|
||||
mod errors;
|
||||
mod events;
|
||||
|
||||
use std::{error::Error, fmt};
|
||||
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
Reference in New Issue
Block a user