@echo off

REM 启动Node.js后端服务
start "Node.js Backend" cmd /k "cd backend && npm run dev"

REM 等待2秒，确保Node.js服务有时间启动
timeout /t 2 /nobreak >nul

REM 启动Python TQAPI服务
start "Python TQAPI Service" cmd /k "cd backend/python_service && python main.py"

echo 服务启动完成！
echo Node.js后端服务运行在 http://localhost:3007
echo Python TQAPI服务运行在 http://localhost:8000
echo 按任意键关闭此窗口...
pause >nul
