12345678910111213 |
- const {request} = require('../https/request.js')
- module.exports = {
- //添加设备
- postDevice: (params) => request('/devices', 'POST', params),
- //获取设备信息
- getDevice: (Device,Group) => request('/devices?id=' + Device + '&group_id='+ Group, 'GET'),
- //修改设备
- putDevice: (params) => request('/devices', 'PUT', params),
- //删除设备
- delDevice: (Device) => request('/devices?id=' + Device,'DELETE'),
- //获取回路参数
- getloop:(Device) => request('/devices/relays?id=' + Device,'GET')
- }
|