审计导出功能--初版

This commit is contained in:
Cheng Zhou
2025-12-17 21:55:38 +08:00
parent 4202ed7922
commit 4aa968f27c
9 changed files with 228 additions and 24 deletions
+2
View File
@@ -18,6 +18,7 @@ export interface AuditEvent {
before?: Record<string, any>;
after?: Record<string, any>;
diffText?: string[];
reason?: string;
result: "SUCCESS" | "FAIL";
resultLabel: string;
timestamp: string;
@@ -71,6 +72,7 @@ export const normalizeAuditEvent = (raw: any, userMap: Record<string, string>):
before,
after,
diffText: Array.isArray(diffText) ? diffText : diffText ? [diffText] : [],
reason: detailObj.reason,
result: detailObj.result || "SUCCESS",
resultLabel: detailObj.result === "FAIL" ? "失败" : "成功",
timestamp: raw.created_at,