mirror of
https://github.com/andwati/telecom-platform.git
synced 2026-11-30 15:58:46 +00:00
refactor: Mark unused parameters with underscore and remove unused getHighestPriorityCarrier helper
- Mark unused model parameter with underscore in generateMaintenanceRecommendations - Mark unused context and period parameters with underscore in calculateCompetitiveIndex - Mark unused context parameter with underscore in calculateOptimizationROI - Mark unused data parameter with underscore in generateAnalysis - Mark unused ratePlan and data parameters with underscore in optimizeForCompetitive - Mark unused
This commit is contained in:
@@ -110,17 +110,17 @@ func (s *PricingOptimizationService) optimizeForProfitMargin(ratePlan *RatePlan,
|
||||
return math.Round(optimalPrice*100) / 100
|
||||
}
|
||||
|
||||
func (s *PricingOptimizationService) optimizeForCompetitive(ratePlan *RatePlan, data []HistoricalDataPoint) float64 {
|
||||
func (s *PricingOptimizationService) optimizeForCompetitive(_ *RatePlan, _ []HistoricalDataPoint) float64 {
|
||||
competitorPrices := []float64{9.99, 12.99, 14.99, 16.99}
|
||||
medianPrice := competitorPrices[len(competitorPrices)/2]
|
||||
return medianPrice * 0.95
|
||||
}
|
||||
|
||||
func (s *PricingOptimizationService) optimizeForChurnReduction(ratePlan *RatePlan, data []HistoricalDataPoint) float64 {
|
||||
func (s *PricingOptimizationService) optimizeForChurnReduction(ratePlan *RatePlan, _ []HistoricalDataPoint) float64 {
|
||||
return ratePlan.BasePrice * 0.9
|
||||
}
|
||||
|
||||
func (s *PricingOptimizationService) predictOutcomes(ratePlan *RatePlan, price float64, data []HistoricalDataPoint) (float64, int64) {
|
||||
func (s *PricingOptimizationService) predictOutcomes(_ *RatePlan, price float64, data []HistoricalDataPoint) (float64, int64) {
|
||||
demand := s.predictDemand(price, data)
|
||||
return price * float64(demand), demand
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user