1.用途

采用Post方式,请求参数为JSON格式

2.URL

http://124.223.60.234:8181/spartan/deviceconfig/queryTerminalNotifyConfig

3.请求参数

3.1.参数示例

{
    "userId":"21"
}

3.2.参数说明

字段 类型 说明 是否必须
userId String 用户唯一标识 Y

4.返回参数

4.1.返回参数示例

{
    "code": 200,
    "message": "Operation succeeded",
    "data": [
        {
            "terminalId": "DE23DFD430F046B5B9683F7593FFF8D7",
            "terminalName": "测试勿删",
            "terminalNum": "413052434601",
            "terminalColor": "#F2D68F",
            "terminalType": 100,
            "terminalTypeName": "VM-400",
            "modelId": 1,
            "authority": 0,
            "motionSensor": 0,
            "lightSensor": 0,
            "tempSensor": 0,
            "userId": null,
            "updateTime": "2023-11-02 10:18:13"
        },
        {
            "terminalId": "5E0BD82152484B9CBC2F1E28D0E57B45",
            "terminalName": "145060133871",
            "terminalNum": "145060133871",
            "terminalColor": "",
            "terminalType": 100,
            "terminalTypeName": "VM-400",
            "modelId": 1,
            "authority": 0,
            "motionSensor": 0,
            "lightSensor": 0,
            "tempSensor": 0,
            "userId": null,
            "updateTime": null
        },
        {
            "terminalId": "66B3AB59C829486787777AEC889C1A7B",
            "terminalName": "413051518321",
            "terminalNum": "413051518321",
            "terminalColor": "",
            "terminalType": 100,
            "terminalTypeName": "VM-400",
            "modelId": 1,
            "authority": 0,
            "motionSensor": 0,
            "lightSensor": 0,
            "tempSensor": 0,
            "userId": null,
            "updateTime": null
        },
        {
            "terminalId": "71B15D97194B4F7098EAEE85866B31DC",
            "terminalName": "413050530517",
            "terminalNum": "413050530517",
            "terminalColor": "",
            "terminalType": 100,
            "terminalTypeName": "VM-400",
            "modelId": 1,
            "authority": 0,
            "motionSensor": 0,
            "lightSensor": 0,
            "tempSensor": 0,
            "userId": null,
            "updateTime": null
        },
        {
            "terminalId": "84B55C64263F4DCBB4EB519ADBC0BF13",
            "terminalName": "162070003378",
            "terminalNum": "162070003378",
            "terminalColor": "",
            "terminalType": 100,
            "terminalTypeName": "VM-400",
            "modelId": 1,
            "authority": 0,
            "motionSensor": 0,
            "lightSensor": 0,
            "tempSensor": 0,
            "userId": null,
            "updateTime": null
        },
        {
            "terminalId": "D6DA85A514EC4A4BA479BE435DDFCB6F",
            "terminalName": "413050517845",
            "terminalNum": "413050517845",
            "terminalColor": "",
            "terminalType": 100,
            "terminalTypeName": "VM-400",
            "modelId": 1,
            "authority": 0,
            "motionSensor": 0,
            "lightSensor": 0,
            "tempSensor": 0,
            "userId": null,
            "updateTime": null
        },
        {
            "terminalId": "F830265D49D44AB0AA43BA671266135D",
            "terminalName": "413051517141",
            "terminalNum": "413051517141",
            "terminalColor": "",
            "terminalType": 100,
            "terminalTypeName": "VM-400",
            "modelId": 1,
            "authority": 0,
            "motionSensor": 0,
            "lightSensor": 0,
            "tempSensor": 0,
            "userId": null,
            "updateTime": null
        },
        {
            "terminalId": "F944B67B1E144B699A226FFD641526B7",
            "terminalName": "344056138295",
            "terminalNum": "344056138295",
            "terminalColor": "",
            "terminalType": 100,
            "terminalTypeName": "VM-400",
            "modelId": 1,
            "authority": 0,
            "motionSensor": 0,
            "lightSensor": 0,
            "tempSensor": 0,
            "userId": null,
            "updateTime": null
        }
    ]
}

4.2.返回参数说明

字段 类型 说明
code int 返回状态,详情参见“返回状态集”
message String 返回结果描述
data Object 返回结果体
data说明
字段 类型 说明
terminalId String 设备ID
terminalName String 设备名称
terminalColor String 设备颜色
terminalNum String S/N码
terminalType int 设备类型ID,100:VM-400
terminalTypeName String 设备类型名称,即:VM-400
modelId int 设备所属的分类;1:V系列;2:G系列;3:A系列
authority String 权限(0:Owner;1:Guest;2:Admin)
motionSensor int motion sensor推送状态;0:关闭;1:开启
lightSensor int light Sensor 推送状态,0:关闭;1:开启
tempSensor int temp & humidity Sensor 推送状态,0:关闭;1:开启
userId String 用户ID
updateTime String 最后修改时间

5.测试示例

作者:admin  创建时间:2023-11-02 18:14
最后编辑:admin  更新时间:2024-06-13 09:41