设备管理首页
[TOC]
简要描述
- 所有子设备信息展示
请求URL
http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Equipment/getAllEquipmentInfo
请求方式
- GET
请求参数说明
参数名 | 说明 |
---|---|
userId | 用户ID |
返回示例
{
"code": 0,
"msg": "请求成功",
"data": [
{
"id": "1",
"no": "dn001",
"name": "温度传感器",
"manufactor": "温生产厂家",
"model": "温型号一",
"tel": "13326335988",
"installer": "温安装厂家一",
"install_time": "2023-03-02 12:03:26",
"install_location": "地点一",
"classify": "0",
"picurl": "/Public/EquipmentThumb/1.png",
"is_fault": "0",
"is_common": "0",
"greenhouse": {
"id": "1",
"name": "温室A",
"classify": "0"
},
"is_online": 0,
"is_use": 1
},
{
"id": "2",
"no": "dn002",
"name": "湿度传感器",
"manufactor": "湿生产厂家",
"model": "湿型号二",
"tel": "13325598755",
"installer": "湿安装厂家二",
"install_time": "2023-03-05 08:30:26",
"install_location": "地点二",
"classify": "0",
"picurl": "/Public/EquipmentThumb/1.png",
"is_fault": "0",
"is_common": "0",
"greenhouse": {
"id": "1",
"name": "温室A",
"classify": "0"
},
"is_online": 0,
"is_use": 1
}
]
}
返回参数说明
参数名 | 说明 |
---|---|
id | 子设备主键,用于后续查询该设备详情页面 |
no | 设备编号 |
name | 设备名称 |
manufactor | 设备生产厂家 |
model | 设备型号 |
tel | 维修电话 |
installer | 设备安装方 |
install_time | 设备安装时间 |
install_location | 设备安装地点 |
classify | 设备类型 0-监测设备,1-控制设备,2-其他,用于展示不同背景色 |
picurl | 封面图地址 |
is_fault | 是否故障 0-无故障,1-故障 |
is_common | 是否公用 0-不公用,1-公用 |
is_online | 设备在线状态 0-在线,1-离线 |
is_use | 使用情况 0-闲置,1-占用;若 is_fault = 1 则显示故障 |
|greenhouse-name |设备所属地点名称 |
备注
- 该接口将单设备的自身状态全部返回,为了方便后续单设备详情页面展示时候的信息展示,在单设备详情页面展示接口中,只会返回使用信息和设备维护信息,该页面信息将不会返回