feat: add charity reporting & financial breakdowns in admin, fix mobile scroll restoration and OTP numeric keyboard
Deploy Canina / deploy (push) Successful in 1m44s

This commit is contained in:
parsa committed 2026-08-26 00:12:33 +03:30
1 parent 7b89e141c5
commit cf9ae234b9
230 files changed
+266394 -123714

No files matched your search

+23 -5
View File
@@ -1,7 +1,12 @@
import { Controller, Get, UseGuards } from '@nestjs/common';
import { Controller, Get, Query, UseGuards } from '@nestjs/common';
import { ReportsService } from './reports.service';
import { JwtAuthGuard } from '../auth/jwt-auth.guard';
import { ApiTags, ApiBearerAuth, ApiOperation } from '@nestjs/swagger';
import {
ApiTags,
ApiBearerAuth,
ApiOperation,
ApiQuery,
} from '@nestjs/swagger';
@ApiTags('Admin - گزارشات')
@ApiBearerAuth()
@@ -11,9 +16,22 @@ export class ReportsController {
@UseGuards(JwtAuthGuard)
@Get()
@ApiOperation({ summary: 'دریافت گزارشات داشبورد' })
async getReports() {
const data = await this.reportsService.getDashboardReports();
@ApiOperation({
summary: 'دریافت گزارشات داشبورد با قابلیت فیلتر زمانی و نوع کاربر',
})
@ApiQuery({ name: 'startDate', required: false })
@ApiQuery({ name: 'endDate', required: false })
@ApiQuery({ name: 'role', required: false })
async getReports(
@Query('startDate') startDate?: string,
@Query('endDate') endDate?: string,
@Query('role') role?: string,
) {
const data = await this.reportsService.getDashboardReports({
startDate,
endDate,
role,
});
return { success: true, data };
}
}