FlowPacs/yudao-ui-admin-vue3/src/api/infra/apiErrorLog/index.ts

40 lines
968 B
TypeScript
Raw Normal View History

2022-11-03 16:55:01 +08:00
import request from '@/config/axios'
2022-07-18 19:06:37 +08:00
2022-11-21 15:27:06 +08:00
export interface ApiErrorLogVO {
id: number
userId: string
userIp: string
userAgent: string
userType: string
applicationName: string
requestMethod: string
requestParams: string
requestUrl: string
exceptionTime: string
exceptionName: string
exceptionStackTrace: string
processUserId: string
processStatus: number
resultCode: number
}
2022-07-18 19:06:37 +08:00
// 查询列表API 访问日志
2022-07-19 22:33:54 +08:00
export const getApiErrorLogPageApi = (params) => {
return request.get({ url: '/infra/api-error-log/page', params })
2022-07-18 19:06:37 +08:00
}
// 更新 API 错误日志的处理状态
export const updateApiErrorLogPageApi = (id: number, processStatus: number) => {
2022-07-19 22:33:54 +08:00
return request.put({
2022-07-18 19:06:37 +08:00
url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus
})
}
// 导出API 访问日志
2022-07-19 22:33:54 +08:00
export const exportApiErrorLogApi = (params) => {
2022-07-25 21:03:14 +08:00
return request.download({
url: '/infra/api-error-log/export-excel',
params
})
2022-07-18 19:06:37 +08:00
}