| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- 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",
- }
- })
- }
- }
|