获取正在处理的数据(上传列表加载)

优质
小牛编辑
133浏览
2023-12-01

接口说明

获取正在处理的数据(上传列表加载)
如需调用,请访问 开发者文档 来查看详细的接口使用说明
该接口仅开放给已获取SDK的开发者

API地址

GET /wish3dearth/api/material/v1.0.0/getProcessMaterials

是否需要登录

请求字段说明

参数类型请求类型是否必须说明
tokenstringheader当前登录用户的TOKEN

响应字段说明

响应成功示例

{
  "code": 0,
  "data": [
    {
      "id": "63efa11969fa4d1ca76a81b5c7be82f5",
      "title": "skp_lmz",
      "materialType": "0",
      "dataType": null,
      "materialStatus": "0",
      "viewCount": 0,
      "dataSize": 0,
      "position": "120,30,0",
      "coverImg": null,
      "description": null,
      "extraJson": "{\"chunks\":\"1\"}",
      "uploadType": "1",
      "uploadFilePath": "upload/63efa11969fa4d1ca76a81b5c7be82f5/zip/data.zip",
      "handleStatus": "1",
      "startWaitingTime": "2019-12-16 10:16:23",
      "handleStartTime": null,
      "handleEndTime": null,
      "errorMsg": null,
      "owner": "289baa7eb41a421c9014fb1a00c887de",
      "createBy": "289baa7eb41a421c9014fb1a00c887de",
      "createDate": "2019-12-16 10:16:23",
      "updateBy": "289baa7eb41a421c9014fb1a00c887de",
      "updateDate": "2019-12-16 10:16:23",
      "remarks": null,
      "delDiskFlag": "0",
      "delDbFlag": "0",
      "delDiskTaskFlag": "0",
      "delDbTaskFlag": "0",
      "materialScope": "1",
      "delFlag": "0",
      "createByName": null,
      "powers": null,
      "teamName": null,
      "teamPay": "0",
      "sceneNumber": null
    }
  ],
  "message": "成功"
}

响应失败示例

{
  "code": 500,
  "message": "未知错误,请及时联系管理人员进行处理"
}

响应接受类型

application/json

响应状态码

HTTP状态码原因
0成功
200OK
401Unauthorized
403Forbidden
404Not Found
10000token不能为空
10001token已失效,请重新登录
10013用户信息不存在
14011素材ID不能为空
14016未查询到素材信息
14017获取素材大小失败
14018获取数据类型失败
99998非法请求
99999服务器异常

示例代码

$.ajax({

    url: '/wish3dearth/api/material/v1.0.0/getProcessMaterials?token=',

    type: 'GET',

    data: '',

    dataType: 'text',

    cache: false,

    contentType: 'application/json',

    xhrFields: {

        withCredentials: true

    },

    crossDomain: true,

    success:function(data){

        // 成功返回值

    },

    error:function(XMLHttpRequest, textStatus, errorThrown){

    

    }

})