Files
Fabric/docs/backend-split-mvp.md

43 lines
1006 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Backend Split MVP 开发清单
## Fabric.Backend.Center
### Phase 1
- [ ] 初始化 NestJS 项目骨架
- [ ] Auth 模块register/login/refresh/logout
- [ ] Guild Node 注册接口shared-secret handshake
- [ ] Node 列表与状态查询接口
### 建议 API
- `POST /auth/register`
- `POST /auth/login`
- `POST /auth/refresh`
- `POST /nodes/register`
- `GET /nodes`
---
## Fabric.Backend.Guild
### Phase 1
- [ ] 初始化 NestJS 项目骨架
- [ ] Guild/Channel/DM 数据模型
- [ ] 消息发送/编辑/删除接口
- [ ] 每 Channel/DM 的 `seq` 分配器
- [ ]`seq` 区间回补接口
### 建议 API
- `POST /guilds`
- `POST /channels`
- `POST /channels/:id/messages`
- `PATCH /channels/:id/messages/:messageId`
- `DELETE /channels/:id/messages/:messageId`
- `GET /channels/:id/messages?seq_from=&seq_to=`
---
## 集成顺序建议
1. 先完成 Center 登录 + Node 注册
2. 再完成 Guild 消息主链路create + list + seq
3. 最后接入 WebSocket 与插件事件