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