feat: implement user wallet charging and transaction logging for Daya loan processing

This commit is contained in:
masoodafar-web
2025-12-19 23:14:42 +03:30
parent 8b784101be
commit 9864302bab
9 changed files with 352 additions and 51 deletions
@@ -347,6 +347,7 @@ message WeeklyCommissionPoolModel
{
int64 id = 1;
int64 week_definition_id = 2;
string week_display_name = 3;
int64 total_pool_amount = 4;
int32 total_balances = 5;
int64 value_per_balance = 6;
@@ -433,6 +434,7 @@ message WorkerExecutionLogModel
{
string execution_id = 1;
int64 week_definition_id = 2;
string week_display_name = 3;
string step = 4; // "Balances" | "Pool" | "Payouts" | "Full"
bool success = 5;
google.protobuf.StringValue error_message = 6;
@@ -156,7 +156,7 @@ message GetNetworkTreeRequest
google.protobuf.Int32Value max_depth = 2;
google.protobuf.BoolValue only_active = 3;
google.protobuf.BoolValue is_club_active = 4;
google.protobuf.StringValue activation_week_number = 5;
google.protobuf.StringValue activation_week_definition_id = 5;
}
message GetNetworkTreeResponse
@@ -175,7 +175,7 @@ message NetworkTreeNodeModel
google.protobuf.Timestamp joined_at = 7;
google.protobuf.Timestamp club_activated_at = 8; // تاریخ فعال‌سازی در باشگاه
bool is_club_active = 9; // فعال بودن در باشگاه
string activation_week_number = 10; // شماره هفته فعال‌سازی
google.protobuf.Int64Value activation_week_definition_id = 10; // شماره هفته فعال‌سازی
bool is_activated_in_target_week = 11; // آیا در هفته هدف فعال شده
google.protobuf.Timestamp user_created = 12; // تاریخ ایجاد کاربر
}