from fastapi import APIRouter, status | |
from app.schemas.health import HealthResponse | |
from app.services.health import health_service | |
router = APIRouter() | |
async def health_check(): | |
""" | |
健康检查接口 | |
返回: | |
- status: 整体状态 (healthy/degraded) | |
- version: 应用版本 | |
""" | |
return await health_service.check_health() | |