mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-27 06:41:12 +00:00
refactor: 重构用户、角色、部门等模块的字段长度和校验逻辑 fix: 修复前端接口类型定义和字段显示问题 style: 优化代码格式和注释 perf: 提升数据库连接性能和查询效率 docs: 更新README和配置文档 test: 添加字段校验和数据库连接测试 chore: 更新依赖包和配置文件
17 lines
466 B
Python
17 lines
466 B
Python
# -*- coding: utf-8 -*-
|
|
|
|
from fastapi import APIRouter
|
|
from fastapi.responses import JSONResponse
|
|
|
|
HealthRouter = APIRouter(prefix="", tags=["健康检查"])
|
|
|
|
@HealthRouter.get("/health", summary="健康检查", description="检查系统健康状态")
|
|
async def health_check() -> JSONResponse:
|
|
"""
|
|
健康检查接口
|
|
|
|
返回:
|
|
- JSONResponse: 包含健康状态的JSON响应
|
|
"""
|
|
return JSONResponse(content={"msg": True}, status_code=200)
|