升级任务管理

最后更新于:2023-05-24 17:44:09

接口说明

物联网云平台支持应用服务器查询升级任务列表。

URL

请求方法POST
URL/api/task/list
传输协议HHTP/HTTPS

请求参数

参数必选/可选类型位置描述
token必选Stringheader调用登陆接口返回的 token
deptId可选IntegerParams组织ID
number可选StringParams设备编号
taskType可选IntegerParams任务类型(1=远程升级,2=蓝牙升级)
status可选IntegerParams升级状态(0=等待,3=正在升级,5=升级成功)
pageSize可选IntegerParams每页显示数
不填默认为10
pageNum可选IntegerParams页数
不填默认为1

响应参数(可用参数)

参数类型描述
idIntegerID
numberString设备编号
taskTypeString任务类型(1=远程升级,2=蓝牙升级)
statusString升级状态(0=等待,3=正在升级,5=升级成功)
createTimeString创建时间

请求示例

响应示例

{
    "total": 1,
    "rows": [
        {
            "createBy": null,
            "createTime": "2023-05-24 17:39:41",
            "updateBy": null,
            "updateTime": null,
            "remark": null,
            "id": 13535,
            "deptId": 618,
            "number": "TEST00000001",
            "taskType": 1,
            "packId": 669,
            "address": null,
            "status": 0,
            "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
}