Files
ipms-sjy/yudao-ui-admin-vue3/src/api/infra/apiAccessLog/index.ts

27 lines
630 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 ApiAccessLogVO {
id: number
traceId: string
userId: string
userType: string
applicationName: string
requestMethod: string
requestParams: string
requestUrl: string
beginTime: string
endTIme: string
duration: string
resultCode: number
}
2022-07-18 19:06:37 +08:00
// 查询列表API 访问日志
2022-07-19 22:33:54 +08:00
export const getApiAccessLogPageApi = (params) => {
return request.get({ url: '/infra/api-access-log/page', params })
2022-07-18 19:06:37 +08:00
}
// 导出API 访问日志
export const exportApiAccessLogApi = (params) => {
2022-07-25 21:03:14 +08:00
return request.download({ url: '/infra/api-access-log/export-excel', params })
2022-07-18 19:06:37 +08:00
}