import request from '@/utils/request'

// 下载员工资产导入模板
export function importBaseStaffAssetTemplate() {
  return request({
    url: '/ccdi/baseStaff/asset/importTemplate',
    method: 'post'
  })
}

// 导入员工资产数据
export function importBaseStaffAssetData(data) {
  return request({
    url: '/ccdi/baseStaff/asset/importData',
    method: 'post',
    data: data
  })
}

// 查询员工资产导入状态
export function getBaseStaffAssetImportStatus(taskId) {
  return request({
    url: '/ccdi/baseStaff/asset/importStatus/' + taskId,
    method: 'get'
  })
}

// 查询员工资产导入失败记录
export function getBaseStaffAssetImportFailures(taskId, pageNum, pageSize) {
  return request({
    url: '/ccdi/baseStaff/asset/importFailures/' + taskId,
    method: 'get',
    params: { pageNum, pageSize }
  })
}
