东农后台api接口文档

接口文档


扫一扫-设备详情信息

[TOC]

简要描述
  • 点击扫一扫获取设备详情信息
请求URL
  • http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Equipment/getEquipmentDetailInfoByNo
请求方式
  • GET
参数
参数名 必选 说明
no 扫码后获得的编码信息
返回示例
{
    "code": 0,
    "msg": "请求成功",
    "data": {
        "use_info": {
            "currentLocation": "A-1",
            "currentUser": "周学,孙学生",
            "currentEndTime": "2023-11-01 00:00:00"
        },
        "maintain_info": [
            {
                "create_time": "2023-04-06 10:59:23",
                "content": "维修了设备",
                "maintain_name": "张工",
                "record_name": "李工"
            },
            {
                "create_time": "2023-03-02 10:30:30",
                "content": "维修了设备",
                "maintain_name": "张工",
                "record_name": "赵工"
            }
        ],
        "base_info": {
            "id": "1",
            "no": "dn001",
            "name": "温度传感器",
            "manufacturer_tel": "13326335988",
            "manufacturer": "温传感器制造商",
            "model": "温型号一",
            "installer_tel": "13326335988",
            "installer": "温安装厂家一",
            "supplier_tel": "13326335988",
            "supplier": "温传感器供货商",
            "install_time": "2023-03-02",
            "install_location": "地点一",
            "classify": "0",
            "picurl": "/Public/Upload/Equipment/2023-04-07/642f72c7cde0b.png",
            "func_id": "34",
            "greenhouse_id": "1",
            "parent_id": "5",
            "is_fault": "0",
            "is_common": "0",
            "is_camera": "0",
            "is_show": "1",
            "type_id": "5",
            "greenhouse": {
                "id": "1",
                "name": "温室A",
                "classify": "1",
                "terminal_id": "16007141",
                "main_valve": "16",
                "sub_valve": "5,6,7,8,9,10,11,12,13,14,15",
                "is_use_fertilizer": "1"
            },
            "is_online": 0,
            "is_use": 1
        }
    }
}
返回参数说明
参数名 说明
use_info 设备当前被使用的信息
+currentLocation 当前使用地方
+currentUser 当前使用人
+currentEndTime 当前使用截止时间
maintain_info 设备维修信息
base_info 设备基础信息
备注
  • 应用场景:用户扫一扫之后获得的编码数据放在一个搜索框中,点击搜索后再用该数据为参数访问此接口,将信息展示到页面中(以 UI 图为主)
  • 测试用例 no='dn001'

页面列表

ITEM_HTML