升级包管理
最后更新于:2023-05-24 17:22:57
接口说明
物联网云平台支持应用服务器查询升级包列表。
URL
| 请求方法 | POST |
| URL | /api/upgrade/list |
| 传输协议 | HHTP/HTTPS |
请求参数
| 参数 | 必选/可选 | 类型 | 位置 | 描述 |
| token | 必选 | String | header | 调用登陆接口返回的 token |
| deptId | 可选 | Integer | Params | 组织ID |
| username | 可选 | String | Params | 升级包用户名 |
| filename | 可选 | String | Params | 升级包文件名 |
| pageSize | 可选 | Integer | Params | 每页显示数 不填默认为10 |
| pageNum | 可选 | Integer | Params | 页数 不填默认为1 |
响应参数(可用参数)
| 参数 | 类型 | 描述 |
| id | Integer | ID |
| username | String | 升级包用户名 |
| filename | String | 升级包文件名 |
| hdVersion | String | 硬件版本 |
| swVersion | String | 软件版本 |
| size | Integer | 包大小 |
| crc | String | 校验码 |
| createTime | String | 创建时间 |
请求示例

响应示例
成功
{
"total": 1,
"rows": [
{
"createBy": null,
"createTime": "2023-05-24 17:13:30",
"updateBy": null,
"updateTime": null,
"remark": null,
"id": 669,
"username": "KDLA",
"deptId": 618,
"filename": "MD-S27x_HC32L19x8888889999.bin",
"hdVersion": "HW_V3.1",
"swVersion": "FW_V2.2.8",
"size": 102400,
"path": "/2023/05/24/MD-S27x_HC32L19x8888889999_20230524171329A001.bin",
"crc": "F220",
"array": null,
"dept": {
"createBy": null,
"createTime": null,
"updateBy": null,
"updateTime": null,
"remark": null,
"deptId": 618,
"parentId": 599,
"ancestors": null,
"deptName": "铭控厂区演示",
"orderNum": 13,
"leader": "",
"phone": null,
"email": null,
"shortNote": null,
"status": "0",
"delFlag": null,
"parentName": null
}
}
],
"code": 0,
"msg": null
}