260320:1131 Refactor Overrall #01
Build and Deploy / deploy (push) Has been cancelled

This commit is contained in:
admin
2026-03-20 11:31:27 +07:00
parent f1b81a7d0d
commit 1d3479770b
147 changed files with 1745 additions and 1567 deletions
@@ -11,7 +11,16 @@ export class AuditLogController {
@Get()
@RequirePermission('audit-log.view')
findAll(@Query() query: any) {
findAll(
@Query()
query: {
page?: number;
limit?: number;
entityName?: string;
action?: string;
userId?: number;
}
) {
return this.auditLogService.findAll(query);
}
}
@@ -10,7 +10,13 @@ export class AuditLogService {
private readonly auditLogRepository: Repository<AuditLog>
) {}
async findAll(query: any) {
async findAll(query: {
page?: number;
limit?: number;
entityName?: string;
action?: string;
userId?: number;
}) {
const { page = 1, limit = 20, entityName, action, userId } = query;
const skip = (page - 1) * limit;