简要描述:

原API

请求域名:

  • http://xx.com

请求路由:

GET/&route=plugin.yz-supply-home-water-machin.frontend.device.device.getDeviceSchedule

请求参数说明:

参数名 类型 是否必需 说明
device_id int 设备ID

返回示例:

正确时返回:

{
  "result": 0,
  "msg": "设备不存在或无权限操作",
  "data": []
}
{
    "result": 1,
    "msg": "获取成功",
    "data": []
}
{
    "result": 1,
    "msg": "获取成功",
    "data": [
        {
            "weekday": 1,
            "is_enabled": true,
            "time_slots": [
                {
                    "start_time": "08:00",
                    "end_time": "09:00",
                    "time_flag": 2
                },
                {
                    "start_time": "14:00",
                    "end_time": "15:00",
                    "time_flag": 2
                },
                {
                    "start_time": "20:00",
                    "end_time": "21:00",
                    "time_flag": 2
                }
            ]
        }
    ]
}

返回参数说明:

参数名 类型 说明