16bdd76eaf
tpbig.exe的ATP模板使用Windows绝对路径引用库文件: $INCLUDE, D:\ATP\110\ganzi\fanji\noM\short.lib, ... 需要wine的D:驱动器映射到ATP目录才能正确解析。 修改内容: 1. api/app/services/wine_service.py - 新增 _ensure_wine_drive_mapping() 在每次执行wine前自动创建dosdevices/d:: symlink指向ATP目录, 并将templates/fanji/*.lib复制到DOS路径对应位置 2. 预创建 ATP/110/ganzi/fanji/noM/ 目录结构并放入库文件
API Service
FastAPI 后端服务,包含用户认证和 RBAC 权限控制。
核心能力
- JWT Access Token(默认 8 小时)
- Refresh Session(HttpOnly Cookie,默认 30 天,刷新轮换)
- RBAC(用户-角色-权限)
- 用户管理接口(需
user.manage)
本地开发
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -r api/requirements.txt
python -m uvicorn api.app.main:app --reload --host 0.0.0.0 --port 8000
主要接口
GET /healthGET /api/v1/pingPOST /api/v1/auth/registerPOST /api/v1/auth/loginPOST /api/v1/auth/refreshPOST /api/v1/auth/logoutGET /api/v1/auth/meGET /api/v1/users