import request from '@/utils/request'

// 列表数据
export function importListData(query) {
  return request({
    url: '/system/UploadDocument/listRecord',
    method: 'get',
    params: query
  })
}

// 导入模板
export function importImportTemplate() {
  return request({
    url: '/system/UploadDocument/exportTemplate',
    method: 'get'
  })
}

// 查看数据
export function importViewData(query) {
  return request({
    url: '/system/UploadDocument/listData',
    method: 'get',
    params: query
  })
}

// 下载数据
export function importDownloadData(id) {
  return request({
    url: '/system/UploadDocument/listRecord?recordId=' + id,
    method: 'get',
  })
}
