@echo off
echo 启动图生视频API测试环境...

echo.
echo 1. 启动后端服务...
start "Backend Service" cmd /k "mvn spring-boot:run"

echo.
echo 2. 等待后端服务启动...
timeout /t 10 /nobreak > nul

echo.
echo 3. 启动前端服务...
cd frontend
start "Frontend Service" cmd /k "npm run dev"

echo.
echo 4. 服务启动完成！
echo.
echo 后端服务: http://localhost:8080
echo 前端服务: http://localhost:5173
echo 图生视频页面: http://localhost:5173/image-to-video/create
echo.
echo 按任意键退出...
pause > nul








