shst


根据id查询设备

[TOC]


接口说明

  • 根据id查询设备

接口地址

  • http://xxx.com/equipment/getById

请求方式

  • GET

请求参数

  • 请求行
参数名 类型 是否必选 说明
equipmentId String 设备id
  • 请求头
参数名 类型 是否必选 说明
ut string token密钥

响应数据

参数名 类型 说明
res String 1:成功,0:失败
msg String 提示信息
data Object 响应数据
error String 错误信息
count String 数量

响应数据data说明

参数名 类型 说明
equipmentId String 设备id
name String 设备名称
equipmentDTU String 设备DTU
info String 参数信息
equipmentType int 设备类型 0控制类设备 1监测类设备
isStart int 0未启用,1启用
addTime String 添加时间
updTime String 修改时间
isDel int 0未删除,1删除

响应示例

{
    "res": 1,
    "msg": "success",
    "data": {
        "equipmentId": "227cc3dad9404ab1a1f88e8c08e7f14b",
        "name": "444",
        "equipmentDTU": "444",
        "info": "444",
        "equipmentType": 0,
        "isStart": 0,
        "addTime": "2023-03-07 14:19:37",
        "updTime": "2023-03-07 14:19:37",
        "isDel": 0
    },
    "count": 1,
    "error": null
}
{
    "res": 0,
    "msg": "查询失败",
    "data": null,
    "count": 0,
    "error": null
}

页面列表

ITEM_HTML