Feat: admin audit (#5068)

* add admin audit (#5041)

* Test audit (#5058)

* feat: operation index

* fix: delete update vector

* perf: Clear invalid data

* perf: index

* perf: cleare invalid data

* index

* perf: audit event

* fix: schema enum

* add audit.svg (#5060)

Co-authored-by: dreamer6680 <146868355@qq.com>

* update package

* perf: audit

* perf: code move

* eslint

* doc

---------

Co-authored-by: gggaaallleee <91131304+gggaaallleee@users.noreply.github.com>
Co-authored-by: dreamer6680 <1468683855@qq.com>
Co-authored-by: dreamer6680 <146868355@qq.com>
This commit is contained in:
Archer
2025-06-19 10:35:21 +08:00
committed by GitHub
parent 36fafd2149
commit d44befeff0
53 changed files with 580 additions and 266 deletions

View File

@@ -1,8 +1,10 @@
import { vi } from 'vitest';
import './request';
vi.mock(import('@fastgpt/service/support/operationLog/addOperationLog'), () => {
vi.mock(import('@fastgpt/service/support/audit/util'), async (importOriginal) => {
const actual = await importOriginal();
return {
addOperationLog: vi.fn()
...actual,
addAuditLog: vi.fn()
};
});