import request from '@/utils/request'

// 查询等保单位列表
export function listDbdw(query) {
  return request({
    url: '/tcZz/networkSecurity/dbdw/list',
    method: 'get',
    params: query
  })
}

// 查询等保单位详细
export function getDbdw(id) {
  return request({
    url: '/tcZz/networkSecurity/dbdw/' + id,
    method: 'get'
  })
}

// 新增等保单位
export function addDbdw(data) {
  return request({
    url: '/tcZz/networkSecurity/dbdw',
    method: 'post',
    data: data
  })
}

// 修改等保单位
export function updateDbdw(data) {
  return request({
    url: '/tcZz/networkSecurity/dbdw',
    method: 'put',
    data: data
  })
}

// 删除等保单位
export function delDbdw(id) {
  return request({
    url: '/tcZz/networkSecurity/dbdw/' + id,
    method: 'delete'
  })
}
//批量启用禁用
export function isStatusDbdw(params) {
  return request({
    url: '/tcZz/networkSecurity/dbdw/isStatus',
    method: 'get',
    params
  })
}
//通用导入信息
export function importDbdw(data) {
  return request({
    url: '/tcZz/networkSecurity/dbdw/common/importExcel',
    method: 'post',
    data
  })
}