index.ts 604 B

123456789101112131415161718192021
  1. import request from '@/config/axios'
  2. // 查询列表API 访问日志
  3. export const getApiErrorLogPageApi = (params) => {
  4. return request.get({ url: '/infra/api-error-log/page', params })
  5. }
  6. // 更新 API 错误日志的处理状态
  7. export const updateApiErrorLogPageApi = (id: number, processStatus: number) => {
  8. return request.put({
  9. url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus
  10. })
  11. }
  12. // 导出API 访问日志
  13. export const exportApiErrorLogApi = (params) => {
  14. return request.download({
  15. url: '/infra/api-error-log/export-excel',
  16. params
  17. })
  18. }