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