完善 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 @@
//! 运行时物品领域模型过渡落位。
//!
//! 后续迁移宝箱、奇遇和奖励物品规则时,只保留奖励生成与记录规则;
//! 背包落库由外层事务 adapter 编排。

View File

@@ -0,0 +1,3 @@
//! 运行时物品领域错误过渡落位。
//!
//! 错误只表达物品/奇遇规则失败,例如 encounter 缺失或奖励字段非法。

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 module_inventory::{