完善 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 @@
//! 成长领域模型过渡落位。
//!
//! 后续迁移玩家等级、章节预算和经验曲线时,只保留成长规则;
//! 任务、战斗等奖励来源通过事件或应用结果接入。

View File

@@ -0,0 +1,3 @@
//! 成长领域错误过渡落位。
//!
//! 错误保持纯领域语义,例如章节参数非法或经验来源不被接受。

View File

@@ -0,0 +1,3 @@
//! 成长领域事件过渡落位。
//!
//! 用于表达经验已授予、升级待处理和章节节奏变化等事实。

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};