FastAPI Backend 基础 FastAPI 后端服务,包含健康检查接口。 环境 需要 Python 3.13+。已创建本地虚拟环境 .venv。 .\.venv\Scripts\Activate.ps1 python -m pip install -r requirements-dev.txt uvicorn app.main:app --reload 服务启动后访问: API 文档:http://127.0.0.1:8000/docs 健康检查:http://127.0.0.1:8000/health 运行测试: pytest