Files
AI-Health/start-dev.bat
MingNian 3b5cec10a6 feat: AI 提示词模块化 + AI 同意门控 + AI 草稿存储 + 意图路由 + 医疗引用知识库 + 多页面 UI 优化
- AI 提示词拆分为 markdown 模块(Prompts/global + modules + rag + router)
- 新增 AI 同意门控(用户需同意后才能使用 AI 功能)
- 新增 AI 录入草稿存储(AiEntryDraftContracts/EfAiEntryDraftStore/AiEntryDraftRecord)
- 新增 AI 意图路由(ai_intent_router)
- 新增医疗引用知识库(MedicalCitationKnowledge)
- 重构 prompt_manager 和 ai_chat_endpoints
- 优化聊天/趋势/档案/抽屉/医生端等多个页面 UI
- 新增 agent 插画和趋势指标图标资源
- 删除 HANDOFF-2026-07-17.md
2026-07-27 16:53:20 +08:00

46 lines
1.5 KiB
Batchfile

@echo off
chcp 65001 >nul
title HealthManager
set "PATH=D:\PostgreSQL\18\pgsql\bin;D:\Android\platform-tools;%PATH%"
set "PROJECT_ROOT=%~dp0"
echo ========================================
echo HealthManager - Start Services
echo ========================================
echo.
echo [1/2] Starting PostgreSQL...
"D:\PostgreSQL\18\pgsql\bin\pg_ctl.exe" -D "D:\health_project\backend\pgdata" start 2>nul
if errorlevel 1 (echo PG already running) else (echo PG started)
echo.
echo [2/2] Starting .NET Backend...
start "Backend" cmd /k "cd /d %PROJECT_ROOT%backend\src\Health.WebApi && dotnet run"
echo Waiting for backend readiness...
set /a BACKEND_WAIT_SECONDS=0
:wait_backend
powershell -NoProfile -NonInteractive -Command "try { $response = Invoke-WebRequest -UseBasicParsing -Uri 'http://127.0.0.1:5000/openapi/v1.json' -TimeoutSec 2; if ($response.StatusCode -eq 200) { exit 0 } } catch {}; exit 1" >nul 2>&1
if not errorlevel 1 goto backend_ready
set /a BACKEND_WAIT_SECONDS+=1
if %BACKEND_WAIT_SECONDS% GEQ 30 goto backend_failed
timeout /t 1 /nobreak >nul
goto wait_backend
:backend_failed
echo.
echo ERROR: Backend failed to become ready within 30 seconds.
echo Check the Backend window for the detailed error.
pause
exit /b 1
:backend_ready
echo Backend is ready at http://127.0.0.1:5000
echo.
echo All done. Phone connects via WiFi to this PC.
echo If your PC IP changed, rebuild app with:
echo flutter run -d ^<device^> --dart-define=API_BASE_URL=http://^<pc-ip^>:5000
pause