feat: add superadmin health center

This commit is contained in:
2026-01-17 09:18:05 +08:00
parent 94a10a3af0
commit 4f2b8ea3ad
14 changed files with 870 additions and 5 deletions

View File

@@ -32,12 +32,13 @@
- `/superadmin/reports`:报表与导出(待补超管接口)
- `/superadmin/assets`:资产与上传(待补超管接口)
- `/superadmin/notifications`:通知与消息(待补超管接口)
- `/superadmin/health`:健康与告警中心
## 1.1 迭代路线(按接口可用性)
- **P0已有接口可落地**:登录、概览、租户管理/详情、用户管理/详情、订单列表/详情/退款、内容治理。
- **P1需补超管接口**:创作者审核、优惠券、财务/提现、报表导出。
- **P2扩展增强**:资产/上传治理、通知中心、审计日志。
- **P2扩展增强**:资产/上传治理、通知中心、审计日志、健康与告警
## 2. 页面规格(页面 → 功能 → API
@@ -188,6 +189,13 @@
- `GET /super/v1/notifications/templates`
- `POST /super/v1/notifications/templates`
### 2.16 健康与告警 `/superadmin/health`
- 平台健康总览、失败率/超时统计、风险租户告警列表。
- API
- `GET /super/v1/health/overview`
- `GET /super/v1/tenants/health`
## 3. 枚举与数据结构UI 需要)
- 租户状态:`consts.TenantStatus``pending_verify` / `verified` / `banned`),推荐用 `GET /super/v1/tenants/statuses` 驱动展示 label