This commit is contained in:
parent
b693a03264
commit
36b08997bd
|
|
@ -2,28 +2,29 @@ import { request, type ApiResponse, type PagedResult } from '@/utils/request'
|
|||
|
||||
export interface OperationLog {
|
||||
id: number
|
||||
userId: number
|
||||
username: string
|
||||
module: string
|
||||
action: string
|
||||
method: string
|
||||
url: string
|
||||
params: string | null
|
||||
adminUserId: number | null
|
||||
username: string | null
|
||||
module: string | null
|
||||
action: string | null
|
||||
method: string | null
|
||||
url: string | null
|
||||
ip: string | null
|
||||
userAgent: string | null
|
||||
duration: number
|
||||
requestData: string | null
|
||||
responseData: string | null
|
||||
status: number
|
||||
errorMessage: string | null
|
||||
errorMsg: string | null
|
||||
duration: number
|
||||
createdAt: string
|
||||
}
|
||||
|
||||
export interface OperationLogQuery {
|
||||
keyword?: string
|
||||
module?: string
|
||||
startDate?: string
|
||||
endDate?: string
|
||||
page: number
|
||||
pageSize: number
|
||||
username?: string
|
||||
module?: string
|
||||
status?: number
|
||||
startDate?: string
|
||||
endDate?: string
|
||||
}
|
||||
|
||||
// 获取操作日志列表
|
||||
|
|
@ -35,7 +36,7 @@ export function getOperationLogList(params: OperationLogQuery): Promise<ApiRespo
|
|||
})
|
||||
}
|
||||
|
||||
// 获取操作日志详情
|
||||
// 获取日志详情
|
||||
export function getOperationLog(id: number): Promise<ApiResponse<OperationLog>> {
|
||||
return request({
|
||||
url: `/admin/logs/${id}`,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user