mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-13 09:41:52 +08:00
feat: add vue3(element-plus)
This commit is contained in:
19
yudao-ui-admin-vue3/src/api/infra/apiErrorLog/index.ts
Normal file
19
yudao-ui-admin-vue3/src/api/infra/apiErrorLog/index.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { defHttp } from '@/config/axios'
|
||||
import { ApiErrorLogVO } from './types'
|
||||
|
||||
// 查询列表API 访问日志
|
||||
export const getApiErrorLogPageApi = ({ params }) => {
|
||||
return defHttp.get<PageResult<ApiErrorLogVO>>({ url: '/infra/api-error-log/page', params })
|
||||
}
|
||||
|
||||
// 更新 API 错误日志的处理状态
|
||||
export const updateApiErrorLogPageApi = (id: number, processStatus: number) => {
|
||||
return defHttp.put({
|
||||
url: '/infra/api-error-log/update-status?id=' + id + '&processStatus=' + processStatus
|
||||
})
|
||||
}
|
||||
|
||||
// 导出API 访问日志
|
||||
export const exportApiErrorLogApi = ({ params }) => {
|
||||
return defHttp.get({ url: '/infra/api-error-log/export-excel', params, responseType: 'blob' })
|
||||
}
|
17
yudao-ui-admin-vue3/src/api/infra/apiErrorLog/types.ts
Normal file
17
yudao-ui-admin-vue3/src/api/infra/apiErrorLog/types.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
export type 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
|
||||
}
|
Reference in New Issue
Block a user