index.ts 968 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import request from '@/config/axios'
  2. export interface ApiErrorLogVO {
  3. id: number
  4. userId: string
  5. userIp: string
  6. userAgent: string
  7. userType: string
  8. applicationName: string
  9. requestMethod: string
  10. requestParams: string
  11. requestUrl: string
  12. exceptionTime: string
  13. exceptionName: string
  14. exceptionStackTrace: string
  15. processUserId: string
  16. processStatus: number
  17. resultCode: number
  18. }
  19. // 查询列表API 访问日志
  20. export const getApiErrorLogPageApi = (params) => {
  21. return request.get({ url: '/infra/api-error-log/page', params })
  22. }
  23. // 更新 API 错误日志的处理状态
  24. export const updateApiErrorLogPageApi = (id: number, processStatus: number) => {
  25. return request.put({
  26. url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus
  27. })
  28. }
  29. // 导出API 访问日志
  30. export const exportApiErrorLogApi = (params) => {
  31. return request.download({
  32. url: '/infra/api-error-log/export-excel',
  33. params
  34. })
  35. }