import request, { postBlob, getBlob, handleImport } from '@/utils/request'

// 获取列表
export function listPageV2(data) {
  return request({
    url: `/examine/project/config/list?moduleId=${data.moduleId}`,
    method: 'post',
    data
  })
}

//导出
export function pageExport(data, name) {
  return postBlob({
    url: '/examine/project/config/list/export',
    data,
    name
  })
}

// 新增
export function add(data) {
  return request({
    url: `/examine/project/config/add`,
    method: 'post',
    data
  })
}

// 编辑
export function edit(data) {
  return request({
    url: `/examine/project/config/edit`,
    method: 'post',
    data
  })
}

// 删除
export function del(params) {
  return request({
    url: `/examine/project/config/delete`,
    method: 'post',
    params
  })
}

// 详情
export function getDetail(params) {
  return request({
    url: `/examine/project/config/detail`,
    method: 'post',
    params
  })
}