Refactor Tender Management System by Removing Scraping Functionality and Enhancing Tender API
- Removed all scraping-related functionality, including routes, handlers, services, and repository methods, to streamline the tender management system. - Updated the tender API to focus solely on tender management, enhancing endpoints for listing, retrieving, and updating tenders. - Improved Swagger documentation to reflect the removal of scraping endpoints and the addition of new tender-related features. - Ensured adherence to Clean Architecture principles throughout the refactoring process, maintaining a clear separation of concerns.
This commit is contained in:
+3
-6
@@ -38,9 +38,6 @@ package main
|
||||
// @tag.name Admin-Tenders
|
||||
// @tag.description Administrative tender management operations for web panel including CRUD operations, search, statistics, and comprehensive filtering with pagination
|
||||
|
||||
// @tag.name Admin-Scraping
|
||||
// @tag.description Administrative scraping job management operations for TED XML data collection including job control, monitoring, and status tracking
|
||||
|
||||
// @tag.name Admin-Feedback
|
||||
// @tag.description Administrative feedback management operations for web panel including CRUD operations, search, statistics, and comprehensive filtering with pagination
|
||||
|
||||
@@ -108,7 +105,7 @@ func main() {
|
||||
feedbackRepo := feedback.NewFeedbackRepository(mongoManager, logger)
|
||||
|
||||
logger.Info("Repositories initialized successfully", map[string]interface{}{
|
||||
"repositories": []string{"customer", "user", "company", "tender"},
|
||||
"repositories": []string{"customer", "user", "company", "tender", "feedback"},
|
||||
})
|
||||
|
||||
// Initialize validation service
|
||||
@@ -122,7 +119,7 @@ func main() {
|
||||
feedbackService := feedback.NewFeedbackService(feedbackRepo, logger)
|
||||
|
||||
logger.Info("Services initialized successfully", map[string]interface{}{
|
||||
"services": []string{"customer", "user", "company", "tender"},
|
||||
"services": []string{"customer", "user", "company", "tender", "feedback"},
|
||||
})
|
||||
|
||||
// Initialize handlers with services
|
||||
@@ -133,7 +130,7 @@ func main() {
|
||||
feedbackHandler := feedback.NewFeedbackHandler(feedbackService, userHandler, customerHandler, logger)
|
||||
|
||||
logger.Info("Handlers initialized successfully", map[string]interface{}{
|
||||
"handlers": []string{"customer", "user", "company", "tender"},
|
||||
"handlers": []string{"customer", "user", "company", "tender", "feedback"},
|
||||
})
|
||||
|
||||
// Initialize HTTP server
|
||||
|
||||
Reference in New Issue
Block a user