GET /api/dev/tasks

列出所有翻译任务。支持按状态筛选。

查询参数类型必填说明
statusstring状态筛选:createdqueuedrunningcompletedfailedpaused

请求示例:

# 全部任务
curl "http://127.0.0.1:9527/api/dev/tasks" -H "X-API-Key: dk_your_key_here"

# 按状态筛选
curl "http://127.0.0.1:9527/api/dev/tasks?status=running" -H "X-API-Key: dk_your_key_here"

响应示例:

{
  "ok": true,
  "data": {
    "tasks": [
      {
        "taskId": "task_1745398800000_a1b2c3",
        "title": "英语视频翻译为中文",
        "status": "running",
        "sourceLanguage": "en",
        "targetLanguage": "zh",
        "translationStyle": "standard",
        "progress": 45,
        "currentStep": 4,
        "createdAt": "2026-04-23T10:00:00.000Z"
      }
    ],
    "total": 1
  }
}