fix: 修复proxy_service和account_service中不当的顶层import
- proxy_service.py: 将requests和WhitelistManager改为函数内延迟import, 避免启动时加载不需要的依赖;移除未使用的get_exit_ip_via_proxy导入 - account_service.py: 移除未使用的func、joinedload、AuditLog、 user_has_permission顶层导入
This commit is contained in:
@@ -29,6 +29,7 @@ douyu_login_py/
|
||||
│ ├── backend/ # FastAPI 后端
|
||||
│ │ ├── main.py # 入口
|
||||
│ │ ├── routers/ # API 路由
|
||||
│ │ ├── migrations/ # Alembic 数据库迁移
|
||||
│ │ └── services/ # 业务服务
|
||||
│ └── frontend/ # React + Ant Design 前端
|
||||
├── utils/ # 通用工具
|
||||
@@ -79,6 +80,7 @@ cd web/frontend && npm install && npm run dev
|
||||
- 后端:FastAPI + SQLAlchemy + SQLite + JWT
|
||||
- 前端:React + Ant Design + Vite
|
||||
- 核心:Python + OpenCV + pycryptodome
|
||||
- 迁移:Alembic
|
||||
|
||||
## 许可证
|
||||
|
||||
|
||||
Reference in New Issue
Block a user