13.3.9 分页查询文件资源列表(haowhoo.material.file.list)
13.3.9.1 请求参数
| 字段名 | 变量名 | 必填 | 类型 | 示例 | 说明 |
|---|---|---|---|---|---|
| 接口类型 | p1_bizType | 是 | String(32) | haowhoo.goods.get | API接口类型 |
| 商户编号 | p2_tenantCode | 是 | String(20) | 1828400000199 | 商户号,即策AI平台分配 |
| 产品编号 | p3_productCode | 是 | String(20) | 1001 | 产品号,即策AI平台分配 |
| 时间戳 | p4_timestamp | 是 | long | 1574674560993 | 时间戳:1574674560993,北京时间10分钟以内 |
| 查询数据 | p5_data | 是 | String(Max) | … | JSON字符串,不参与加密(此接口无参数) |
| 签名 | sign | 是 | String(200) | … | MD5WITHRSA签名 |
p5_data格式如下:
| 字段名 | 变量名 | 必填 | 类型 | 示例 | 说明 |
|---|---|---|---|---|---|
| 文件夹id | idParentDir | 是 | Long | 1001 | 查询的文件夹(idParentDir不为空) |
13.3.9.2 响应参数
| 字段名 | 变量名 | 必填 | 类型 | 示例 | 说明 |
|---|---|---|---|---|---|
| 接口类型 | rt1_bizType | 是 | String(32) | haowa.hotel.search | API接口类型 |
| 商户编号 | rt2_tenantCode | 是 | String(20) | 1828400000199 | 商户号 |
| 返回码 | rt3_retCode | 否 | String(20) | 0000 | 详情见附录-返回码 |
| 返回信息 | rt4_retMsg | 是 | String(200) | 成功 | |
| 返回结果 | rt5_data | 否 | String(Max) | … | JSON字符串,详见示例 |
| 签名 | sign | 是 | String(200) | … | MD5WITHRSA签名 |
rt5_data格式如下:
| 字段名 | 变量名 | 类型 | 示例 | 说明 |
|---|---|---|---|---|
| 文件夹id | idDir | Long | 1001 | 文件夹id |
| 父文件夹id | idParentDir | Long | 1001 | 父文件夹id |
| 文件夹名称 | name | String | 1001 | 文件夹名称 |
| 文件url | fileUrl | String | 1001 | 文件url |
| 文件url展示 | fileUrlShow | String | 1001 | 文件url展示 |
| 文件前缀url | frontUrl | String | 1001 | 文件前缀url |
| 文件前缀url展示 | frontUrlShow | String | 1001 | 文件前缀url展示 |
| 文件上传标识 | fileUploadFlag | String | 1001 | 文件上传标识 |
| 文件更新参数 | fileUpdateParams | String | 1001 | 文件更新参数 |
| 文件类型 | materialType | String | file | 文件类型 |
| 文件类型描述 | materialTypeDesc | String | faf | 文件类型描述 |
| 文件大小 | size | Long | 99 | 文件大小 |
| 文件时长 | timeLength | Long | 15 | 文件时长 |
13.3.9.3 示例
响应参数rt5_data为下面格式的UTF-8编码的JSON字符串。
格式如下:
{
"idDir": 1001,
"idParentDir": 1001,
"name": "file",
"fileUrl": "aliyun.com",
"fileUrlShow": "aliyun.com",
"frontUrl": "xxx",
"frontUrlShow": "xxx",
"fileUploadFlag": "B",
"fileUpdateParams": "S",
"materialType": "file",
"materialTypeDesc": "文件",
"size": 99,
"timeLength": 15
}