Files
tm_back/ted/eform/notice_change.go
T
n.nakhostin 05c7eae8a2 Add TED Scraper Configuration and Cron Scheduler Implementation
- Introduced a new configuration file for the TED scraper, defining database connection settings, logging preferences, and scraping parameters.
- Implemented a CronScheduler to manage scheduled tasks for TED operations, utilizing the robfig/cron library for scheduling.
- Added new entities and structures for handling TED XML data, including eForms and tender-related information, enhancing the scraper's functionality.
- Updated the main application to initialize the TED scraper with the new configuration and set up graceful shutdown handling.
- Removed the deprecated scraping implementation to streamline the codebase and focus on the new architecture.
2025-09-30 16:03:53 +03:30

17 lines
880 B
Go

package eform
// =====================================================
// CHANGE/CORRECTION STRUCTURE
// =====================================================
// NoticeChange represents changes or corrections to notices
type NoticeChange struct {
ChangeID string `json:"change_id" xml:"change_id" validate:"required"`
SectionReference string `json:"section_reference" xml:"section_reference" validate:"required"`
LotReference string `json:"lot_reference,omitempty" xml:"lot_reference,omitempty"`
Label string `json:"label" xml:"label" validate:"required,max=200"`
OldValue string `json:"old_value,omitempty" xml:"old_value,omitempty"`
NewValue string `json:"new_value" xml:"new_value" validate:"required"`
ChangeDescription string `json:"change_description,omitempty" xml:"change_description,omitempty" validate:"max=2000"`
}