mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-10-01 00:05:17 +00:00
refactor(后端): 统一查询参数处理使用QueueEnum枚举 style(前端): 优化菜单搜索组件样式 fix(后端): 移除不支持的数据库类型dm chore: 更新依赖和配置文件
23 lines
554 B
Python
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="系统健康")
|