查询素材(分页查询素材列表)

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

接口说明

查询素材(分页查询素材列表)
如需调用,请访问 开发者文档 来查看详细的接口使用说明
该接口仅开放给已获取SDK的开发者
如开启https功能,请求地址的协议应改为https,如:https://www.example.com/wish3dearth/api/access/v1.0.0/getLicenseInfo

API地址

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

是否需要登录

请求字段说明

参数类型请求类型是否必须说明
tokenstringheader当前登录用户的TOKEN
titlestringquery素材名称
userSeachTypestringquery用户查询关键字类型(1:用户名、2:手机:3:昵称)
userSeachDatastringquery用户查询关键字
dateBetwenstringquery查询素材创建时间区间(格式:yyyy-MM-dd HH:mm:ss ~ yyyy-MM-dd HH:mm:ss)
sidxstringquery排序字段名称(去驼峰模式中间用下划线隔开)
orderstringquery排序方式(asc或desc)
pagestringquery当前页(从1开始)
limitstringquery每页显示记录条数

响应字段说明

参数类型说明
totalCountnumber总条数
pageSizenumber每页条数
totalPagenumber总页
currPagenumber当前页
listarray素材列表

响应成功示例

{
  "code": 0,
  "data": {
    "totalCount": 14,
    "pageSize": 10,
    "totalPage": 2,
    "currPage": 1,
    "list": [
      {
        "id": "c77e62aeaadf4d7885eef6362c2cdf5a",
        "title": "kml",
        "materialType": "3",
        "dataType": "kml",
        "materialStatus": "1",
        "viewCount": 0,
        "dataSize": 19122,
        "position": "120,30,0",
        "coverImg": null,
        "description": null,
        "extraJson": "{\"tileStore\":\"Mongo\",\"jsonPath\":\"c77e62aeaadf4d7885eef6362c2cdf5a/data.kml\"}",
        "uploadType": "1",
        "uploadFilePath": "upload/c77e62aeaadf4d7885eef6362c2cdf5a/zip/data.zip",
        "handleStatus": "6",
        "startWaitingTime": "2019-12-11 10:49:20",
        "handleStartTime": "2019-12-11 10:50:20",
        "handleEndTime": "2019-12-11 10:53:10",
        "errorMsg": null,
        "owner": "289baa7eb41a421c9014fb1a00c887de",
        "createBy": "289baa7eb41a421c9014fb1a00c887de",
        "createDate": "2019-12-11 10:48:47",
        "updateBy": "289baa7eb41a421c9014fb1a00c887de",
        "updateDate": "2019-12-11 10:48:47",
        "remarks": null,
        "delDiskFlag": "0",
        "delDbFlag": "0",
        "delDiskTaskFlag": "0",
        "delDbTaskFlag": "0",
        "materialScope": "1",
        "delFlag": "0",
        "createByName": "test02",
        "powers": null,
        "teamName": null,
        "teamPay": "0",
        "sceneNumber": null
      }
    ]
  },
  "message": "成功"
}

响应失败示例

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

响应接受类型

application/json

响应状态码

HTTP状态码原因
0成功
200OK
401Unauthorized
403Forbidden
404Not Found
10000token不能为空
10001token已失效,请重新登录
14004获取团队信息失败
14005获取用户ID列表失败
14006时间区间格式错误
99998非法请求
99999服务器异常

示例代码

$.ajax({

    url: '/wish3dearth/api/material/v1.0.0/pageList?token=&title=&userSeachType=&userSeachData=&dateBetwen=&sidx=&order=&page=&limit=',

    type: 'GET',

    data: '',

    dataType: 'text',

    cache: false,

    contentType: 'application/json',

    xhrFields: {

        withCredentials: true

    },

    crossDomain: true,

    success:function(data){

        // 成功返回值

    },

    error:function(XMLHttpRequest, textStatus, errorThrown){

    

    }

})