feat: 持久化运维审计日志

This commit is contained in:
湛兮
2026-06-11 22:57:05 +08:00
parent 2181fc7389
commit 588caa4209
8 changed files with 243 additions and 61 deletions
+4 -1
View File
@@ -1,3 +1,6 @@
/**
* 审计日志查询入口只返回脱敏后的最近记录。
*/
import { Controller, Get } from '@nestjs/common';
import { ApiOkResponse, ApiTags } from '@nestjs/swagger';
import { AuditRecordSummary, AuditService } from './audit.service';
@@ -9,7 +12,7 @@ export class AuditController {
@Get()
@ApiOkResponse({ description: 'Recent sanitized audit records.' })
listRecentRecords(): AuditRecordSummary[] {
async listRecentRecords(): Promise<AuditRecordSummary[]> {
return this.auditService.getRecentRecords();
}
}