提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface ApiErrorLogVO { |
|
4 |
id: number |
|
5 |
traceId: string |
|
6 |
userId: number |
|
7 |
userType: number |
|
8 |
applicationName: string |
|
9 |
requestMethod: string |
|
10 |
requestParams: string |
|
11 |
requestUrl: string |
|
12 |
userIp: string |
|
13 |
userAgent: string |
|
14 |
exceptionTime: Date |
|
15 |
exceptionName: string |
|
16 |
exceptionMessage: string |
|
17 |
exceptionRootCauseMessage: string |
|
18 |
exceptionStackTrace: string |
|
19 |
exceptionClassName: string |
|
20 |
exceptionFileName: string |
|
21 |
exceptionMethodName: string |
|
22 |
exceptionLineNumber: number |
|
23 |
processUserId: number |
|
24 |
processStatus: number |
|
25 |
processTime: Date |
|
26 |
resultCode: number |
|
27 |
createTime: Date |
|
28 |
} |
|
29 |
|
|
30 |
// 查询列表API 访问日志 |
|
31 |
export const getApiErrorLogPage = (params: PageParam) => { |
|
32 |
return request.get({ url: '/infra/api-error-log/page', params }) |
|
33 |
} |
|
34 |
|
|
35 |
// 更新 API 错误日志的处理状态 |
|
36 |
export const updateApiErrorLogPage = (id: number, processStatus: number) => { |
|
37 |
return request.put({ |
|
38 |
url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus |
|
39 |
}) |
|
40 |
} |
|
41 |
|
|
42 |
// 导出API 访问日志 |
|
43 |
export const exportApiErrorLog = (params) => { |
|
44 |
return request.download({ |
|
45 |
url: '/infra/api-error-log/export-excel', |
|
46 |
params |
|
47 |
}) |
|
48 |
} |