feat(dashboard): add optional CommonRequestDto parameter to GetManagerSummary

Add optional CommonRequestDto parameter to GetManagerSummary method in both service interface and implementation, and update the controller endpoint to accept it as a query parameter. This allows passing common request data (e.g., pagination, filtering) to the dashboard summary retrieval.
This commit is contained in:
2026-06-09 23:35:16 +03:30
parent adcee56ce8
commit f2880a2167
2 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,4 @@
using Complex.Application.Common;
using Complex.Application.Services.Dashboard;
using Complex.Common.Dto;
using Complex.EndPoint.Utility;
@@ -20,9 +21,11 @@ namespace Complex.EndPoint.Controllers
}
[HttpGet]
public ResultDto<DashboardSummaryDto> ManagerSummary(Guid complexId)
public ResultDto<DashboardSummaryDto> ManagerSummary(
Guid complexId,
[FromQuery] CommonRequestDto? commonRequest)
{
return _dashboardService.GetManagerSummary(complexId);
return _dashboardService.GetManagerSummary(complexId, commonRequest);
}
}
}