import request from '@/utils/request'

// 查询http服务列表
export function listHttp() {
  return request({
    url: '/test/http/list',
    method: 'get'
  })
}

// 查询http服务详细
export function getHttp(id) {
  return request({
    url: '/test/http/detail',
    method: 'post',
    data: {id}
  })
}

// 新增http服务
export function addHttp(data) {
  return request({
    url: '/test/http/add',
    method: 'post',
    data: data
  })
}

// 修改http服务
export function updateHttp(data) {
  return request({
    url: '/test/http/edit',
    method: 'post',
    data: data
  })
}

// 删除http服务
export function delHttp(id) {
  return request({
    url: '/test/http/del',
    method: 'post',
    data: {id}
  })
}
