fix(api): StatsController uses IStatsService instead of direct AppDbContext

- Add IStatsService in Application layer
- Add StatsService in Infrastructure layer
- StatsController now injects IStatsService (Clean Architecture compliant)
- StatsResponse DTO added to Application/DTOs
This commit is contained in:
Arnaud Dartois committed 2026-07-17 17:36:14 +00:00
1 parent c6450ad50d
commit e17dce1b4f
5 files changed
+55 -15

No files matched your search

@@ -0,0 +1,8 @@
namespace Heimdall.Application.DTOs;
public record StatsResponse(
int TotalSites,
int TotalCameras,
int TotalAgents,
int OnlineAgents,
int ActiveSites);