提交 | 用户 | 时间
|
820397
|
1 |
import request from '@/config/axios' |
H |
2 |
|
|
3 |
export interface ApiAccessLogVO { |
|
4 |
id: number |
|
5 |
traceId: string |
|
6 |
userId: number |
|
7 |
userType: number |
|
8 |
applicationName: string |
|
9 |
requestMethod: string |
|
10 |
requestParams: string |
|
11 |
responseBody: string |
|
12 |
requestUrl: string |
|
13 |
userIp: string |
|
14 |
userAgent: string |
|
15 |
operateModule: string |
|
16 |
operateName: string |
|
17 |
operateType: number |
|
18 |
beginTime: Date |
|
19 |
endTime: Date |
|
20 |
duration: number |
|
21 |
resultCode: number |
|
22 |
resultMsg: string |
|
23 |
createTime: Date |
|
24 |
} |
|
25 |
|
|
26 |
// 查询列表API 访问日志 |
|
27 |
export const getApiAccessLogPage = (params: PageParam) => { |
|
28 |
return request.get({ url: '/infra/api-access-log/page', params }) |
|
29 |
} |
|
30 |
|
|
31 |
// 导出API 访问日志 |
|
32 |
export const exportApiAccessLog = (params) => { |
|
33 |
return request.download({ url: '/infra/api-access-log/export-excel', params }) |
|
34 |
} |