feat: implement advanced reports, pagination for all tables, global settings, and discounts modules

This commit is contained in:
parsa committed 2026-06-12 16:28:06 +03:30
1 parent a7ebb8d792
commit 69502fc380
14 files changed
+1042 -71

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { Controller, Get, UseGuards } from '@nestjs/common';
import { ReportsService } from './reports.service';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
@Controller('admin/reports')
export class ReportsController {
constructor(private readonly reportsService: ReportsService) {}
@UseGuards(JwtAuthGuard)
@Get()
async getReports() {
const data = await this.reportsService.getDashboardReports();
return { success: true, data };
}
}