feat: 持久化运维审计日志
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user