userId = $data['user_id']; $this->fundId = $data['fund_id']; $this->amount = $data['amount']; $this->beforeBalance = $data['before_balance']; $this->afterBalance = $data['after_balance']; $this->operateType = $data['operate_type']; $this->operateId = $data['operate_id']; $this->remark = $data['remark'] ?? ''; } }