2023-02-11 00:44:00 +08:00
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export type OperateLogVO = {
|
|
|
|
id: number
|
|
|
|
userNickname: string
|
|
|
|
traceId: string
|
|
|
|
userId: number
|
|
|
|
module: string
|
|
|
|
name: string
|
|
|
|
type: number
|
|
|
|
content: string
|
|
|
|
exts: Map<String, Object>
|
|
|
|
requestMethod: string
|
|
|
|
requestUrl: string
|
|
|
|
userIp: string
|
|
|
|
userAgent: string
|
|
|
|
javaMethod: string
|
|
|
|
javaMethodArgs: string
|
|
|
|
startTime: Date
|
|
|
|
duration: number
|
|
|
|
resultCode: number
|
|
|
|
resultMsg: string
|
|
|
|
resultData: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询操作日志列表
|
2023-03-18 19:00:58 +08:00
|
|
|
export const getOperateLogPage = (params: PageParam) => {
|
2023-02-11 00:44:00 +08:00
|
|
|
return request.get({ url: '/system/operate-log/page', params })
|
|
|
|
}
|
|
|
|
// 导出操作日志
|
2023-03-18 19:00:58 +08:00
|
|
|
export const exportOperateLog = (params) => {
|
2023-02-11 00:44:00 +08:00
|
|
|
return request.download({ url: '/system/operate-log/export', params })
|
|
|
|
}
|