feat: add Dashboard service with manager summary statistics
This commit is contained in:
28
Complex.EndPoint/Controllers/DashboardController.cs
Normal file
28
Complex.EndPoint/Controllers/DashboardController.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Complex.Application.Services.Dashboard;
|
||||
using Complex.Common.Dto;
|
||||
using Complex.EndPoint.Utility;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Complex.EndPoint.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[ApiVersion("1")]
|
||||
[Route("api/v{version:apiVersion}/[controller]/[action]")]
|
||||
[Authorize]
|
||||
public class DashboardController : Controller
|
||||
{
|
||||
private readonly IDashboardService _dashboardService;
|
||||
|
||||
public DashboardController(IDashboardService dashboardService)
|
||||
{
|
||||
_dashboardService = dashboardService;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public ResultDto<DashboardSummaryDto> ManagerSummary(Guid complexId)
|
||||
{
|
||||
return _dashboardService.GetManagerSummary(complexId);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user