From 36b08997bdd2420a84ae3b2a5ed7636c02591b95 Mon Sep 17 00:00:00 2001 From: 18631081161 <2088094923@qq.com> Date: Sun, 19 Apr 2026 15:44:57 +0800 Subject: [PATCH] 12 --- .../admin-web/src/api/operationLog.ts | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/server/MiAssessment/src/MiAssessment.Admin/admin-web/src/api/operationLog.ts b/server/MiAssessment/src/MiAssessment.Admin/admin-web/src/api/operationLog.ts index 729b33a..c63cd05 100644 --- a/server/MiAssessment/src/MiAssessment.Admin/admin-web/src/api/operationLog.ts +++ b/server/MiAssessment/src/MiAssessment.Admin/admin-web/src/api/operationLog.ts @@ -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> { return request({ url: `/admin/logs/${id}`,