import request from '@/utils/request'

export function getEntityFromCache(id) {
  return request({
      url: 'pipe/hca/getEntityFromCache',
      method: 'post',
      data: id
  })
}

export function add(data) {
  return request({
    url: 'pipe/hca/insert',
    method: 'post',
    data
  })
}

export function edit(data) {
    return request({
      url: 'pipe/hca/update',
      method: 'post',
      data
    })
  }

export function del(ids) {
  return request({
    url: 'pipe/hca/delete',
    method: 'post',
    data: ids
  })
}

export default { add, edit, del, getEntityFromCache }