Files
FastapiAdmin/backend/app/api/v1/module_common/health/controller.py
T
zhangtao 51f9a9acfa feat(前端): 添加页面切换动画功能并优化工作流节点样式
refactor(后端): 统一查询参数处理使用QueueEnum枚举

style(前端): 优化菜单搜索组件样式

fix(后端): 移除不支持的数据库类型dm

chore: 更新依赖和配置文件
2026-02-06 22:31:39 +08:00

23 lines
554 B
Python

from fastapi import APIRouter
from fastapi.responses import JSONResponse
from app.common.response import ResponseSchema, SuccessResponse
HealthRouter = APIRouter(prefix="/health", tags=["健康检查"])
@HealthRouter.get(
"/",
summary="健康检查",
description="检查系统健康状态",
response_model=ResponseSchema[dict],
)
async def health_check() -> JSONResponse:
"""
健康检查接口
返回:
- JSONResponse: 包含健康状态的JSON响应
"""
return SuccessResponse(data=True, msg="系统健康")