完善 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 @@
//! 拼图领域模型过渡落位。
//!
//! 后续迁移拼图 Agent 会话、作品 profile 和运行态聚合时,只保留玩法规则;
//! 图片生成、发布 HTTP shape 和排行榜适配留在外层。

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::{
collections::{BTreeMap, BTreeSet, VecDeque},
error::Error,