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:
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);
|
||||
Reference in new issue
Block a user