You need to enable JavaScript to run this app.
文档中心
机器翻译

机器翻译

复制全文
下载 pdf
文档
文档翻译任务详情
复制全文
下载 pdf
文档翻译任务详情

接口说明

获取文档任务详情,对于子任务中md类型,支持返回富文本

请求API

名称内容
请求方式GET
ActionDocumentTaskDetail

请求参数

参数名是否必填类型描述
projectIdrequirednumber文档项目id
taskIdrequirednumber文档任务id
rawoptionalnumber是否返回纯文本/富文本,该字段目前只支持markdown。0: 不返回、1: 返回。default: 0

返回数据

// HTTP Status: 200
{
  data: {
    taskInfo: {
      taskId: 32815279,
      taskName: 'openapi测试',
      state: 2, // 整个任务进度 1: 刚提交、2: 处理中、3: 完成、4: 停止、5: 删除
      sourceLocale: 'zh',
      targetLocale: ['en'],
      deadline: '2021-11-05T10:00:00.000Z',
      procedures: 1,
      comment: '',
      referenceDoc: {
        referenceDocUrl: '',
        referenceDocType: 0,
        referenceDocName: ''
      },
      createdAt: '2021-11-04T05:02:38.000Z'
    },
    list: [
      {
        // 原文档信息
        doc: {
          docId: 15652713,
          docName: 'test',
          wordCount: 105,
          url: 'https://lf3-cdn-tos.draftstatic.com/obj/ies.fe.starling/test_1636002157082.md',
          locale: 'zh',
          docType: 11
        },
        // 子任务列表
        subtasks: [
          {
            taskId: 32815279,
            subTaskId: 86596056,
            targetLocale: 'en',
            procedures: [
              {
                procedure: 1, // 翻译流程。1: 仅翻译、2: 仅校对、3:翻译+校对
                state: 3, // 该子任务该流程进度 1: 刚提交、2: 处理中、3: 完成、4: 停止、5: 删除
                deadline: '2021-11-05T10:00:00.000Z',
                progress: 100, // 进度比例
                comment: '',
                targetDocId: 13086836,
                createdAt: '2021-11-04T05:02:38.000Z',
                updatedAt: '2021-11-04T05:03:43.000Z'
              }
            ],
            state: 3, // 该子任务进度 1: 刚提交、2: 处理中、3: 完成、4: 停止、5: 删除
            targetDocId: 13086836,
            targetDocUrl:
              'https://lf3-cdn-tos.draftstatic.com/obj/ies.fe.starling/2a43d12fdf98c38ce23c014457cf2774.txt', // 翻译文档链接,与原文档同类型格式
            sourceDocId: 0,
            sourceDocUrl: '',
            totalRuneCount: '0',
            completedRuneCount: '0',
            catType: 0,
            catStage: 0,
            rawContent:
              '<blockquote><p>争做国内使用体验Z好的开源 Web 富文本编辑器!</p></blockquote>' // 翻译内容富文本,目前只支持md格式
          }
        ]
      }
    ]
  }
}
最近更新时间:2026.01.26 17:45:39
这个页面对您有帮助吗?
有用
有用
无用
无用