device.js 431 B

1234567891011
  1. const {request} = require('../https/request.js')
  2. module.exports = {
  3. //添加设备
  4. postDevice: (params) => request('/devices/', 'POST', params),
  5. //获取设备信息
  6. getDevice: (Group,Device) => request('/devices?id=' + Group + '/&group_id='+ Device, 'GET'),
  7. //修改设备
  8. putDevice: (params) => request('/devices/', 'PUT', params),
  9. //删除设备
  10. delDevice: (Device) => request('/devices?id=' + Device,'DELETE')
  11. }