initial: standalone repo from monorepo split

This commit is contained in:
kevin-asprec
2026-04-13 09:37:07 +08:00
commit 5382f3b4e5
87 changed files with 5278 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { Controller, Get, Query } from '@nestjs/common';
import { AuditService } from './audit.service';
@Controller('audit-logs')
export class AuditController {
constructor(private readonly service: AuditService) {}
@Get()
getTenantAuditLogs(
@Query('tenantId') tenantId?: string,
@Query('userId') userId?: string,
@Query('entity') entity?: string,
@Query('action') action?: string,
@Query('page') page?: number,
@Query('limit') limit?: number,
) {
return this.service.getTenantAuditLogs({ tenantId, userId, entity, action, page, limit });
}
@Get('platform')
getPlatformAuditLogs(
@Query('adminId') adminId?: string,
@Query('action') action?: string,
@Query('page') page?: number,
@Query('limit') limit?: number,
) {
return this.service.getPlatformAuditLogs({ adminId, action, page, limit });
}
}