index.ts 643 B

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