简要描述:

设备列表

请求域名:

  • http://xx.com

请求路由:

route=plugin.water-machine.frontend.business.device.index

请求参数说明:

参数名 类型 是否必需 说明
device_no string 设备编号

返回示例:

正确时返回:

{
  "result": 1,
  "msg": "ok",
  "data": {
    "current_page": 1,
    "data": [
      {
        "id": 5,
        "uniacid": 1,
        "merchant_id": 6,
        "merchant_member_id": 11,
        "device_no": "861551054029160",
        "address": "峦山谷7栋",
        "lately_at": null,
        "created_at": "2023-02-22 10:22:56",
        "updated_at": "2023-02-22 10:22:56"
      }
    ],
    "first_page_url": "http://localhost/addons/yun_shop/api.php?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://localhost/addons/yun_shop/api.php?page=1",
    "next_page_url": null,
    "path": "http://localhost/addons/yun_shop/api.php",
    "per_page": 15,
    "prev_page_url": null,
    "to": 9,
    "total": 9
  }
}

返回参数说明:

参数名 类型 说明
data.device_no string 设备编号
data.address string 设备地址
data.created_at string 时间