mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-12-05 09:58:47 +00:00
refactor: Replace map[string]interface{} with map[string]any across currency, handlers, integration, and rateplan packages
- Update BillingSummary.Breakdown field type from map[string]interface{} to map[string]any
- Update Transaction.Metadata field type from map[string]interface{} to map[string]any
- Update RatePlanCurrencyIntegrator subscription and billing metadata to use map[string]any
- Update handler request/response types to use map[string]any (CreateRatePlanRequest, UpdateRatePlanRequest,
This commit is contained in:
@@ -234,7 +234,7 @@ func (l *TenantEventLogger) LogResourceAccess(ctx context.Context, tenantID, use
|
||||
TenantID: tenantID,
|
||||
UserID: userID,
|
||||
EventType: tenant.TenantEventType("resource_access"),
|
||||
EventData: map[string]interface{}{
|
||||
EventData: map[string]any{
|
||||
"resource_type": resourceType,
|
||||
"resource_id": resourceID,
|
||||
"action": action,
|
||||
@@ -254,7 +254,7 @@ func (l *TenantEventLogger) LogQuotaViolation(ctx context.Context, tenantID, res
|
||||
TenantID: tenantID,
|
||||
UserID: "",
|
||||
EventType: tenant.TenantEventQuotaExceeded,
|
||||
EventData: map[string]interface{}{
|
||||
EventData: map[string]any{
|
||||
"resource_type": resourceType,
|
||||
"usage": usage,
|
||||
"limit": limit,
|
||||
|
||||
Reference in New Issue
Block a user