const { post,get } = require('./request') module.exports = { getDeviceConfigs(data){ return post({ url: '/get_device_configs', data: data, headers:{ 'Content-Type':"application/json", } }) }, getDeviceConfigDetail(data){ return post({ url: '/device_config_detail', data: data, headers:{ 'Content-Type':"application/json", } }) }, //删除 removeConfig(data){ return post({ url: '/remove_config', data: data, headers:{ 'Content-Type':"application/json", } }) }, //保存 saveDeviceConfig(data){ return post({ url: '/save_device_config', data: data, headers:{ 'Content-Type':"application/json", } }) }, resetDeviceConfig(data){ return post({ url: '/reset_config', data: data, headers:{ 'Content-Type':"application/json", } }) }, //读取系统配置 getSysConfig(data){ return get({ url: '/get_sys_config', data: data, headers:{ 'Content-Type':"application/json", } }) }, //更新系统配置 updateSysConfigs(data){ return post({ url: '/update_sys_configs', data: data, headers:{ 'Content-Type':"application/json", } }) } }