import request from '@/utils/request'

// 查询节点列表
export function listGroup(type) {
  return request({
    url: '/test/group/list',
    method: 'get',
    params: {type}
  })
}

// 新增节点
export function addGroup(data) {
  return request({
    url: '/test/group/add',
    method: 'post',
    data: data
  })
}

// 修改节点
export function updateGroup(data) {
  return request({
    url: '/test/group/edit',
    method: 'post',
    data: data
  })
}

// 删除节点
export function delGroup(id, type) {
  return request({
    url: '/test/group/del',
    method: 'post',
    data: {id, type}
  })
}
