概览页增加表格统计

This commit is contained in:
2026-08-02 11:16:51 +08:00
parent 6a23e79f4c
commit 50ba6e9c56
11 changed files with 1618 additions and 5 deletions
@@ -1,7 +1,8 @@
import { Controller, Get, UseGuards } from '@nestjs/common';
import { Controller, Get, Query, UseGuards } from '@nestjs/common';
import { HqAuthGuard } from '../../common/guards/hq-auth.guard';
import { SuperAdminGuard } from '../../common/guards/super-admin.guard';
import { AdminDashboardService } from './admin-dashboard.service';
import { AdminDashboardAnalyticsQueryDto } from './dto/admin-query.dto';
@Controller('admin/dashboard')
@UseGuards(HqAuthGuard)
@@ -13,6 +14,11 @@ export class AdminDashboardController {
return this.dashboardService.getStats();
}
@Get('analytics')
analytics(@Query() query: AdminDashboardAnalyticsQueryDto) {
return this.dashboardService.getAnalytics(query);
}
@Get('version')
@UseGuards(SuperAdminGuard)
version() {