2023-02-11 00:44:00 +08:00
|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export type OperateLogVO = {
|
|
|
|
id: number
|
2023-12-14 18:18:55 +08:00
|
|
|
traceId: string
|
|
|
|
userType: number
|
|
|
|
userId: number
|
2023-12-30 17:06:09 +08:00
|
|
|
userName: string
|
|
|
|
type: string
|
|
|
|
subType: string
|
2023-12-14 18:18:55 +08:00
|
|
|
bizId: number
|
2023-12-30 17:06:09 +08:00
|
|
|
action: string
|
2023-12-14 18:18:55 +08:00
|
|
|
extra: string
|
|
|
|
requestMethod: string
|
|
|
|
requestUrl: string
|
|
|
|
userIp: string
|
|
|
|
creator: string
|
|
|
|
creatorName: string
|
|
|
|
createTime: Date
|
|
|
|
}
|
|
|
|
|
2023-02-11 00:44:00 +08:00
|
|
|
// 查询操作日志列表
|
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 })
|
|
|
|
}
|
|
|
|
// 导出操作日志
|
2024-04-04 01:21:27 +08:00
|
|
|
export const exportOperateLog = (params: any) => {
|
2023-02-11 00:44:00 +08:00
|
|
|
return request.download({ url: '/system/operate-log/export', params })
|
|
|
|
}
|