Major Changes: - Database: Install pg_bigm/pgvector plugins, create test database - Python service: v1.0 -> v1.1, add pymupdf4llm/openpyxl/pypandoc - Node.js backend: v1.3 -> v1.7, fix pino-pretty and ES Module imports - Frontend: v1.2 -> v1.3, skip TypeScript check for deployment - Code recovery: Restore empty files from local backup Technical Fixes: - Fix pino-pretty error in production (conditional loading) - Fix ES Module import paths (add .js extensions) - Fix OSSAdapter TypeScript errors - Update Prisma Schema (63 models, 16 schemas) - Update environment variables (DATABASE_URL, EXTRACTION_SERVICE_URL, OSS) - Remove deprecated variables (REDIS_URL, DIFY_API_URL, DIFY_API_KEY) Documentation: - Create 0126 deployment folder with 8 documents - Update database development standards v2.0 - Update SAE deployment status records Deployment Status: - PostgreSQL: ai_clinical_research_test with plugins - Python: v1.1 @ 172.17.173.84:8000 - Backend: v1.7 @ 172.17.173.89:3001 - Frontend: v1.3 @ 172.17.173.90:80 Tested: All services running successfully on SAE
154 lines
3.1 KiB
HTTP
154 lines
3.1 KiB
HTTP
### RVW稿件审查模块 - API测试
|
||
### Phase 1 验证用例
|
||
|
||
@baseUrl = http://localhost:3001
|
||
@taskId = {{$uuid}}
|
||
|
||
### ========================================
|
||
### 1. 创建任务(上传稿件)
|
||
### POST /api/v1/rvw/tasks
|
||
### ========================================
|
||
|
||
# 注意:需要使用工具(如Postman)上传文<EFBFBD>?
|
||
# curl -X POST http://localhost:3001/api/v1/rvw/tasks \
|
||
# -F "file=@test.docx" \
|
||
# -F "modelType=deepseek-v3"
|
||
|
||
|
||
### ========================================
|
||
### 2. 获取任务列表
|
||
### GET /api/v1/rvw/tasks
|
||
### ========================================
|
||
|
||
### 获取全部任务
|
||
GET {{baseUrl}}/api/v1/rvw/tasks
|
||
Content-Type: application/json
|
||
|
||
### 获取待处理任<EFBFBD>?
|
||
GET {{baseUrl}}/api/v1/rvw/tasks?status=pending
|
||
Content-Type: application/json
|
||
|
||
### 获取已完成任<EFBFBD>?
|
||
GET {{baseUrl}}/api/v1/rvw/tasks?status=completed
|
||
Content-Type: application/json
|
||
|
||
### 分页获取
|
||
GET {{baseUrl}}/api/v1/rvw/tasks?page=1&limit=10
|
||
Content-Type: application/json
|
||
|
||
|
||
### ========================================
|
||
### 3. 运行审查(选择智能体)
|
||
### POST /api/v1/rvw/tasks/:taskId/run
|
||
### ========================================
|
||
|
||
### 只选择规范性智能体
|
||
POST {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}/run
|
||
Content-Type: application/json
|
||
|
||
{
|
||
"agents": ["editorial"]
|
||
}
|
||
|
||
### 只选择方法学智能体
|
||
POST {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}/run
|
||
Content-Type: application/json
|
||
|
||
{
|
||
"agents": ["methodology"]
|
||
}
|
||
|
||
### 同时选择两个智能体(默认<EFBFBD>?
|
||
POST {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}/run
|
||
Content-Type: application/json
|
||
|
||
{
|
||
"agents": ["editorial", "methodology"]
|
||
}
|
||
|
||
|
||
### ========================================
|
||
### 4. 批量运行审查
|
||
### POST /api/v1/rvw/tasks/batch/run
|
||
### ========================================
|
||
|
||
POST {{baseUrl}}/api/v1/rvw/tasks/batch/run
|
||
Content-Type: application/json
|
||
|
||
{
|
||
"taskIds": ["task-id-1", "task-id-2", "task-id-3"],
|
||
"agents": ["editorial", "methodology"]
|
||
}
|
||
|
||
|
||
### ========================================
|
||
### 5. 获取任务详情
|
||
### GET /api/v1/rvw/tasks/:taskId
|
||
### ========================================
|
||
|
||
GET {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}
|
||
Content-Type: application/json
|
||
|
||
|
||
### ========================================
|
||
### 6. 获取审查报告
|
||
### GET /api/v1/rvw/tasks/:taskId/report
|
||
### ========================================
|
||
|
||
GET {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}/report
|
||
Content-Type: application/json
|
||
|
||
|
||
### ========================================
|
||
### 7. 删除任务
|
||
### DELETE /api/v1/rvw/tasks/:taskId
|
||
### ========================================
|
||
|
||
DELETE {{baseUrl}}/api/v1/rvw/tasks/{{taskId}}
|
||
Content-Type: application/json
|
||
|
||
|
||
### ========================================
|
||
### 旧版API(兼容性测试)
|
||
### ========================================
|
||
|
||
### 旧版:获取任务列<EFBFBD>?
|
||
GET {{baseUrl}}/api/v1/review/tasks
|
||
Content-Type: application/json
|
||
|
||
### 旧版:获取任务状<EFBFBD>?
|
||
GET {{baseUrl}}/api/v1/review/tasks/{{taskId}}
|
||
Content-Type: application/json
|
||
|
||
### 旧版:获取报<EFBFBD>?
|
||
GET {{baseUrl}}/api/v1/review/tasks/{{taskId}}/report
|
||
Content-Type: application/json
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|