apiErrorLog.js 698 Bytes
Newer Older
sunhongwei's avatar
sunhongwei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import request from '@/utils/request'

// 更新 API 错误日志的处理状态
export function updateApiErrorLogProcess(id, processStatus) {
  return request({
    url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus,
    method: 'put',
  })
}

// 获得API 错误日志分页
export function getApiErrorLogPage(query) {
  return request({
    url: '/infra/api-error-log/page',
    method: 'get',
16
    timeout: 1000*60*3,
sunhongwei's avatar
sunhongwei committed
17 18 19 20 21 22 23 24 25 26 27 28 29
    params: query
  })
}

// 导出API 错误日志 Excel
export function exportApiErrorLogExcel(query) {
  return request({
    url: '/infra/api-error-log/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}