fix: 添加 pymysql 依赖 + Edge 兼容路由

- requirements.txt 添加 pymysql、cos-python-sdk-v5
- 新增 /api/ai/alert/edge/report 和 /edge/resolve 路由(无认证)
- 使 Edge 设备可直接上报到 FastAPI 服务

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-02 13:18:35 +08:00
parent f81cc81ce6
commit 9cee0a2cac
4 changed files with 81 additions and 7 deletions

View File

@@ -9,6 +9,7 @@ from app.routers.yudao_alert import router as yudao_alert_router
from app.routers.yudao_aiot_alarm import router as yudao_aiot_alarm_router
from app.routers.yudao_aiot_edge import router as yudao_aiot_edge_router
from app.routers.yudao_aiot_storage import router as yudao_aiot_storage_router
from app.routers.edge_compat import router as edge_compat_router
__all__ = [
"yudao_auth_router",
@@ -16,4 +17,5 @@ __all__ = [
"yudao_aiot_alarm_router",
"yudao_aiot_edge_router",
"yudao_aiot_storage_router",
"edge_compat_router",
]