mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-18 09:45:14 +00:00
refactor: Replace interface{} with any and optimize slice operations
- Replace map[string]interface{} with map[string]any in UpdateCarrierMetrics
- Replace interface{} with any for GeneratedAt field in PricingEffectiveness struct
- Replace loop-based empty string checks with slices.Contains in ValidateConditions
- Replace range loop index initialization with range-only syntax in calculateAPIPerformance
- Add slices import for standard library slice utilities
This commit is contained in:
@@ -227,7 +227,7 @@ type PricingEffectiveness struct {
|
||||
TotalSavings float64 `json:"total_savings"`
|
||||
RulesByType map[string]int `json:"rules_by_type"`
|
||||
ConversionImprovement float64 `json:"conversion_improvement"`
|
||||
GeneratedAt interface{} `json:"generated_at"`
|
||||
GeneratedAt any `json:"generated_at"`
|
||||
}
|
||||
|
||||
type RatePlanPricingAnalytics struct {
|
||||
|
||||
Reference in New Issue
Block a user