feat:【system】操作日志 50%

This commit is contained in:
YunaiV
2025-12-17 13:07:45 +08:00
parent 3676cd702b
commit 9ae1cb9bdf
5 changed files with 480 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
import type { PageParam, PageResult } from '@/http/types'
import { http } from '@/http/http'
/** 操作日志信息 */
export interface OperateLog {
id?: number
traceId?: string
userId?: number
userType?: number
userName?: string
type?: string
subType?: string
bizId?: number
action?: string
extra?: string
requestMethod?: string
requestUrl?: string
userIp?: string
userAgent?: string
createTime?: Date
}
/** 获取操作日志分页列表 */
export function getOperateLogPage(params: PageParam) {
return http.get<PageResult<OperateLog>>('/system/operate-log/page', params)
}
/** 获取操作日志详情 */
export function getOperateLog(id: number) {
return http.get<OperateLog>(`/system/operate-log/get?id=${id}`)
}