refactor: split backend into center and guild modules

This commit is contained in:
nav
2026-05-12 08:26:28 +00:00
parent 3b11fe0d31
commit 3910c0da9f
2 changed files with 19 additions and 9 deletions

10
.gitmodules vendored
View File

@@ -2,9 +2,13 @@
path = Fabric.OpenclawPlugin path = Fabric.OpenclawPlugin
url = https://git.hangman-lab.top/nav/Fabric.OpenclawPlugin.git url = https://git.hangman-lab.top/nav/Fabric.OpenclawPlugin.git
branch = main branch = main
[submodule "Fabric.Backend"] [submodule "Fabric.Backend.Center"]
path = Fabric.Backend path = Fabric.Backend.Center
url = https://git.hangman-lab.top/nav/Fabric.Backend.git url = https://git.hangman-lab.top/nav/Fabric.Backend.Center.git
branch = main
[submodule "Fabric.Backend.Guild"]
path = Fabric.Backend.Guild
url = https://git.hangman-lab.top/nav/Fabric.Backend.Guild.git
branch = main branch = main
[submodule "Fabric.Frontend"] [submodule "Fabric.Frontend"]
path = Fabric.Frontend path = Fabric.Frontend

18
PLAN.md
View File

@@ -55,11 +55,15 @@
- Guild 服务注册时需证明持有中心服务 secret共享密钥握手 - Guild 服务注册时需证明持有中心服务 secret共享密钥握手
## 5. 模块拆分(对应仓库) ## 5. 模块拆分(对应仓库)
- `Fabric.Backend` - `Fabric.Backend.Center`
- Auth/WorkspaceGuild - 用户身份与登录Identity Hub
- Chat CoreChannel、DM、消息不含 Thread - Guild Node 注册与鉴权(共享密钥握手
- 中心级配置与审计
- `Fabric.Backend.Guild`
- Workspace/Guild/Channel/DM
- Chat Core消息、回复、编辑、删除、@;不含 Thread
- Integration SurfaceWebhook、Bot Token、扩展回调 - Integration SurfaceWebhook、Bot Token、扩展回调
- Permission & Audit - Guild 级权限与审计
- `Fabric.Frontend` - `Fabric.Frontend`
- 工作区/频道 UI - 工作区/频道 UI
- 消息流、输入框、回复/编辑/删除/@ - 消息流、输入框、回复/编辑/删除/@
@@ -81,7 +85,8 @@
- 架构图、数据模型、接口草案 - 架构图、数据模型、接口草案
### Week 2基础业务 API ### Week 2基础业务 API
- 登录注册、工作区、频道、消息 REST API - Center登录注册、Guild Node 注册鉴权 API
- Guild工作区、频道、消息 REST API
- 基础前端页面(频道列表 + 消息流) - 基础前端页面(频道列表 + 消息流)
### Week 3实时通信 ### Week 3实时通信
@@ -108,7 +113,8 @@
- `Fabric`(主仓库) - `Fabric`(主仓库)
- 挂载子模块: - 挂载子模块:
- `Fabric.OpenclawPlugin` - `Fabric.OpenclawPlugin`
- `Fabric.Backend` - `Fabric.Backend.Center`
- `Fabric.Backend.Guild`
- `Fabric.Frontend` - `Fabric.Frontend`
- `Fabric.Desktop` - `Fabric.Desktop`
- `Fabric.Android` - `Fabric.Android`