东农后台api接口文档

接口文档


设备管理对应类型显示首页

[TOC]

简要描述
  • 所有子设备信息展示
请求URL
  • http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Equipment/getAllEquipmentInfo
请求方式
  • GET
    请求参数说明
参数名 说明
userId 用户ID
pageNo 页码
pageSize 数量
typeId 类型ID
返回示例
{
    "code": 0,
    "msg": "请求成功",
    "data": [
        {
            "id": "1",
            "no": "dn001",
            "name": "温度传感器",
            "manufacturer_tel": "13326335988",
            "manufacturer": "温传感器制造商",
            "model": "温型号一",
            "installer_tel": "13326335988",
            "installer": "温安装厂家一",
            "supplier_tel": "13326335988",
            "supplier": "温传感器供货商",
            "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": "湿度传感器",
            "manufacturer_tel": "13326335988",
            "manufacturer": "温传感器制造商",
            "model": "湿型号二",
            "installer_tel": "13326335988",
            "installer": "温安装厂家一",
            "supplier_tel": "13326335988",
            "supplier": "温传感器供货商",
            "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
        }
    ],
    "count":9

}
返回参数说明
参数名 说明
id 子设备主键,用于后续查询该设备详情页面
no 设备编号
name 设备名称
manufacturer_tel 设备制造商联系方式
manufacturer 设备制造商
model 设备型号
installer_tel 设备安装方联系方式
installer 设备安装方
supplier_tel 设备供货方联系方式
supplier 设备供货方
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 设备所属地点名称
备注
  • 该接口将单设备的自身状态全部返回,为了方便后续单设备详情页面展示时候的信息展示,在单设备详情页面展示接口中,只会返回使用信息和设备维护信息,该页面信息将不会返回

页面列表

ITEM_HTML