Blame view

yudao-ui-admin-vue3/src/api/infra/apiErrorLog/index.ts 650 Bytes
9e2e220b   xingyu   refactor: vue3 ax...
1
2
3
  import { useAxios } from '@/hooks/web/useAxios'
  
  const request = useAxios()
80a3ae8d   xingyu   feat: add vue3(el...
4
5
  
  // 查询列表API 访问日志
9e2e220b   xingyu   refactor: vue3 ax...
6
7
  export const getApiErrorLogPageApi = (params) => {
    return request.get({ url: '/infra/api-error-log/page', params })
80a3ae8d   xingyu   feat: add vue3(el...
8
9
10
11
  }
  
  // 更新 API 错误日志的处理状态
  export const updateApiErrorLogPageApi = (id: number, processStatus: number) => {
9e2e220b   xingyu   refactor: vue3 ax...
12
    return request.put({
80a3ae8d   xingyu   feat: add vue3(el...
13
14
15
16
17
      url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus
    })
  }
  
  // 导出API 访问日志
9e2e220b   xingyu   refactor: vue3 ax...
18
19
  export const exportApiErrorLogApi = (params) => {
    return request.get({ url: '/infra/api-error-log/export-excel', params, responseType: 'blob' })
80a3ae8d   xingyu   feat: add vue3(el...
20
  }