feat: enhance network membership response with detailed stats and hierarchy
All checks were successful
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 2m14s
All checks were successful
Build and Deploy to Kubernetes / build-and-deploy (push) Successful in 2m14s
This commit is contained in:
@@ -85,20 +85,68 @@ message GetUserNetworkRequest
|
||||
|
||||
message GetUserNetworkResponse
|
||||
{
|
||||
// اطلاعات اصلی کاربر
|
||||
int64 id = 1;
|
||||
int64 user_id = 2;
|
||||
string user_name = 3;
|
||||
google.protobuf.Int64Value parent_id = 4;
|
||||
string parent_name = 5;
|
||||
int32 network_leg = 6; // NetworkLeg enum
|
||||
google.protobuf.Int64Value left_child_id = 7;
|
||||
string left_child_name = 8;
|
||||
google.protobuf.Int64Value right_child_id = 9;
|
||||
string right_child_name = 10;
|
||||
int32 network_level = 11;
|
||||
string referral_code = 12;
|
||||
google.protobuf.Timestamp joined_at = 13;
|
||||
google.protobuf.Timestamp created = 14;
|
||||
string mobile = 4;
|
||||
string email = 5;
|
||||
string national_code = 6;
|
||||
string referral_code = 7;
|
||||
bool is_mobile_verified = 8;
|
||||
google.protobuf.Timestamp birth_date = 9;
|
||||
google.protobuf.Timestamp joined_at = 10;
|
||||
|
||||
// اطلاعات والد
|
||||
google.protobuf.Int64Value parent_id = 11;
|
||||
string parent_name = 12;
|
||||
string parent_mobile = 13;
|
||||
|
||||
// موقعیت در شبکه
|
||||
int32 network_leg = 14; // NetworkLeg enum
|
||||
int32 network_level = 15;
|
||||
bool is_in_network = 16;
|
||||
|
||||
// اطلاعات فرزند چپ
|
||||
google.protobuf.Int64Value left_child_id = 17;
|
||||
string left_child_name = 18;
|
||||
string left_child_mobile = 19;
|
||||
google.protobuf.Timestamp left_child_joined_at = 20;
|
||||
|
||||
// اطلاعات فرزند راست
|
||||
google.protobuf.Int64Value right_child_id = 21;
|
||||
string right_child_name = 22;
|
||||
string right_child_mobile = 23;
|
||||
google.protobuf.Timestamp right_child_joined_at = 24;
|
||||
|
||||
// آمار فرزندان مستقیم
|
||||
int32 total_children = 25;
|
||||
int32 left_child_count = 26;
|
||||
int32 right_child_count = 27;
|
||||
|
||||
// آمار کل شبکه
|
||||
int32 total_left_leg_members = 28;
|
||||
int32 total_right_leg_members = 29;
|
||||
int32 total_network_size = 30;
|
||||
int32 max_network_depth = 31;
|
||||
|
||||
// اطلاعات پکیج و دایا
|
||||
bool has_received_daya_credit = 32;
|
||||
google.protobuf.Timestamp daya_credit_received_at = 33;
|
||||
int32 package_purchase_method = 34;
|
||||
bool has_purchased_golden_package = 35;
|
||||
|
||||
// آمار مالی
|
||||
double total_earned_commission = 36;
|
||||
double total_paid_commission = 37;
|
||||
double pending_commission = 38;
|
||||
int32 total_balances_earned = 39;
|
||||
|
||||
// آمار فعالیت
|
||||
int32 active_members_in_network = 40;
|
||||
int32 inactive_members_in_network = 41;
|
||||
|
||||
google.protobuf.Timestamp created = 42;
|
||||
}
|
||||
|
||||
// GetNetworkTree Query
|
||||
|
||||
Reference in New Issue
Block a user