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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user