2023-02-11 00:44:00 +08:00
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export interface ApiAccessLogVO {
|
|
|
|
id: number
|
|
|
|
traceId: string
|
|
|
|
userId: number
|
|
|
|
userType: number
|
|
|
|
applicationName: string
|
|
|
|
requestMethod: string
|
|
|
|
requestParams: string
|
2024-04-03 19:55:54 +08:00
|
|
|
responseBody: string
|
2023-02-11 00:44:00 +08:00
|
|
|
requestUrl: string
|
|
|
|
userIp: string
|
|
|
|
userAgent: string
|
2024-04-03 19:55:54 +08:00
|
|
|
operateModule: string
|
|
|
|
operateName: string
|
|
|
|
operateType: number
|
2023-02-11 00:44:00 +08:00
|
|
|
beginTime: Date
|
2024-04-03 19:55:54 +08:00
|
|
|
endTime: Date
|
2023-02-11 00:44:00 +08:00
|
|
|
duration: number
|
|
|
|
resultCode: number
|
|
|
|
resultMsg: string
|
|
|
|
createTime: Date
|
|
|
|
}
|
2023-03-23 23:37:15 +08:00
|
|
|
|
2023-02-11 00:44:00 +08:00
|
|
|
// 查询列表API 访问日志
|
2023-03-23 13:21:38 +08:00
|
|
|
export const getApiAccessLogPage = (params: PageParam) => {
|
2023-02-11 00:44:00 +08:00
|
|
|
return request.get({ url: '/infra/api-access-log/page', params })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 导出API 访问日志
|
2023-03-23 13:21:38 +08:00
|
|
|
export const exportApiAccessLog = (params) => {
|
2023-02-11 00:44:00 +08:00
|
|
|
return request.download({ url: '/infra/api-access-log/export-excel', params })
|
|
|
|
}
|