feat: Add comprehensive routing for rate plans, pricing, currency, tenants, SMDP, and selection endpoints

- Add db parameter to setupRoutes function signature and pass from main.go
- Add rate plan routes with CRUD, search, subscription, and management endpoints using RatePlanAdapter
- Add pricing routes with rule management endpoints using PricingService
- Add currency routes with conversion, exchange rates, billing operations, and analytics placeholder endpoints
- Add tenant routes with management
This commit is contained in:
nutcas3
2026-05-03 10:14:02 +03:00
parent b69d73ade7
commit e5ccb62277
2 changed files with 172 additions and 5 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ func main() {
// Create repository for MVNO operations
repo := repository.NewGormRepository(db, logger)
setupRoutes(router, client, profileRepo, webhookClient, messageQueue, repo, logger)
setupRoutes(router, client, profileRepo, webhookClient, messageQueue, repo, db, logger)
handler.Logger.Info().Str("port", port).Msg("Carrier Connector API server starting")
if err := router.Run(":" + port); err != nil {