You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
import { defHttp } from '@/utils/http/axios'
|
|
|
|
|
|
|
|
export interface OperateLogVO {
|
|
|
|
id: number
|
|
|
|
userNickname: string
|
|
|
|
traceId: string
|
|
|
|
userId: number
|
|
|
|
module: string
|
|
|
|
name: string
|
|
|
|
type: number
|
|
|
|
content: string
|
|
|
|
exts: Map<string, object>
|
|
|
|
defHttpMethod: string
|
|
|
|
defHttpUrl: string
|
|
|
|
userIp: string
|
|
|
|
userAgent: string
|
|
|
|
javaMethod: string
|
|
|
|
javaMethodArgs: string
|
|
|
|
startTime: Date
|
|
|
|
duration: number
|
|
|
|
resultCode: number
|
|
|
|
resultMsg: string
|
|
|
|
resultData: string
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface OperateLogPageReqVO extends PageParam {
|
|
|
|
module?: string
|
|
|
|
userNickname?: string
|
|
|
|
type?: number
|
|
|
|
success?: boolean
|
|
|
|
startTime?: Date[]
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询操作日志列表
|
|
|
|
export function getOperateLogPage(params: OperateLogPageReqVO) {
|
|
|
|
return defHttp.get({ url: '/system/operate-log/page', params })
|
|
|
|
}
|
|
|
|
// 导出操作日志
|
|
|
|
export function exportOperateLog(params: OperateLogPageReqVO) {
|
|
|
|
return defHttp.download({ url: '/system/operate-log/export', params }, '操作日志.xls')
|
|
|
|
}
|