Newer
Older
IntegratedFront / src / api / page / control.ts
liyaguang on 6 Jan 414 bytes 添加电子围栏
import request from '../index'

// 重启
export function fetchRestart() {
  return request({
    url: '/api/control/restart',
    method: 'get',
  })
}
// 下发配置
export function pushConfig(data: any) {
  return request({
    url: '/api/push/set_push_config',
    method: 'post',
    data
  })
}
// 获取
export function getConfig() {
  return request({
    url: '/api/push/list',
    method: 'get',
  })
}