refactor(network): improve network statistics calculations and update related DTOs
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 7m14s

- Refactored GetNetworkStatisticsQueryHandler to enhance logic for counting active members in left and right legs.
- Updated GetNetworkStatisticsResponseDto to include new properties for LeftLegCount and RightLegCount.
- Modified Protobuf definitions to align with the updated response structure for network statistics.
- Enhanced SQL script to differentiate between all subtree counts and active club member counts.
This commit is contained in:
masoodafar-web
2026-09-04 04:12:31 +03:30
parent 612d6fd141
commit 78d1fee89a
5 changed files with 61 additions and 36 deletions
@@ -315,6 +315,7 @@ message GetMyNetworkTreeResponse
// GetMyNetworkStatistics - for frontend customer display
message GetMyNetworkStatisticsResponse
{
// اعضای فعال باشگاه: کل = چپ + راست
int32 total_members = 1;
int32 active_members = 2;
int32 left_leg_count = 3;