apiErrorLog.js 674 B

12345678910111213141516171819202122232425262728
  1. import request from '@/utils/request'
  2. // 更新 API 错误日志的处理状态
  3. export function updateApiErrorLogProcess(id, processStatus) {
  4. return request({
  5. url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus,
  6. method: 'put',
  7. })
  8. }
  9. // 获得API 错误日志分页
  10. export function getApiErrorLogPage(query) {
  11. return request({
  12. url: '/infra/api-error-log/page',
  13. method: 'get',
  14. params: query
  15. })
  16. }
  17. // 导出API 错误日志 Excel
  18. export function exportApiErrorLogExcel(query) {
  19. return request({
  20. url: '/infra/api-error-log/export-excel',
  21. method: 'get',
  22. params: query,
  23. responseType: 'blob'
  24. })
  25. }