mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-10-18 11:02:54 +00:00
- Remove ChurnRiskLevel, ChurnPrediction, ChurnMetrics, and ChurnFactor type definitions from churn_service.go - Simplify NewChurnAnalysisService constructor to single-line initialization - Refactor PredictChurn to use analyzeFactors, calculateScore, RiskLevelFromScore, generateReasons, and RecommendationsForRisk helper functions - Simplify GetChurnMetrics by using periodDates helper and inline database queries - Replace GetChurnFactors implementation with DefaultChurnFactors helper