mp4 / app /services /health.py
gitdeem's picture
Upload 34 files
a9837a2 verified
raw
history blame
379 Bytes
from app.config import get_settings
settings = get_settings()
class HealthService:
async def check_health(self) -> dict:
"""
检查各个服务的健康状态
"""
return {
"status": "healthy",
"version": settings.VERSION,
}
# 创建服务实例
health_service = HealthService()