fengling-console/.planning/STATE.md

84 lines
2.4 KiB
Markdown
Raw 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.

# 状态Fengling Console
**最后更新:** 2026-03-04
---
## 项目引用
参考:.planning/PROJECT.md更新于 2026-03-02
**核心价值:** 统一的管理入口,负责所有运维相关的配置和操作,让其他服务专注于业务逻辑。
**当前重点:** Phase 4: 待添加(适配 Platform 1.0.12 实体变更)
---
## 项目状态
| 项目 | 状态 |
|------|------|
| PROJECT.md | ✓ 已初始化 |
| CODEBASE | ✓ 已有ARCHITECTURE.md, CONCERNS.md, STACK.md 等) |
| Roadmap | ✓ 已创建 |
| 变更文档 | ✓ 已创建 |
---
## 累积上下文
### 初始化
- **2026-03-02** 创建 PROJECT.md定义 Console 在生态系统中的角色
- 现有代码库(已有 ARCHITECTURE.md、INTEGRATIONS.md 等)
### 路线图演进
- **2026-03-02** Phase 1 已添加:实现 Gateway 配置管理及事件推送
- **2026-03-02** Phase 1 执行完成
- **2026-03-02** Phase 2 已添加:实现 Gateway 插件系统
- **2026-03-03** Phase 3 已添加:网关配置变更广播机制
- **2026-03-03** Phase 3 已规划
- **2026-03-03** Phase 3 上下文已捕获:广播策略 = 仅手动触发
- **2026-03-04** Platform 1.0.12 实体变更Gateway → GwCluster/GwDestination/GwTenantRoute
### 与 Gateway 的集成
| 组件 | 位置 | 现状 |
|------|------|------|
| GatewayDbContext | src/Data/ | 已实现,管理网关配置数据 |
| GatewayController | src/Controllers/ | 已实现,提供 API |
| GatewayService | src/Services/ | 已实现,业务逻辑 |
| ConfigNotificationService | src/Services/ | ✓ 已实现 PostgreSQL NOTIFY |
| ReloadGatewayAsync | src/Services/GatewayService.cs | 待集成通知服务 |
### 待完成任务
- **适配 Platform 1.0.12 实体变更**(编译错误待修复)
---
## 变更记录
### Platform 1.0.12 Gateway 实体变更
详细变更见:`.planning/docs/gateway-entity-changes-1.0.12.md`
**主要变更:**
1. GatewayInstance → GwDestination内嵌值对象
2. GatewayCluster → GwCluster聚合根包含 Destinations
3. GatewayRoute → GwTenantRoute通过 ClusterId 关联)
4. IInstanceStore 移除,改用 IClusterStore
---
## 备注
- Console 是运维中枢,网关配置的单一管理门户
- 广播策略:仅手动触发(通过 /reload 接口)
- 下游网关收到通知后自行查询数据库刷新
---
*最后更新2026-03-04*