Files
tm_back/internal/document_scraper/form.go
T
2026-05-11 15:52:32 +03:30

32 lines
1.3 KiB
Go

package document_scraper
// DocumentScraperListRequest represents the request to list tenders pending document scraping
type DocumentScraperListRequest struct {
Limit int `query:"limit" valid:"optional,range(1|100)" default:"20"`
Offset int `query:"offset" valid:"optional,min(0)" default:"0"`
}
// DocumentScraperGetRequest represents the request to get a specific tender by notice publication ID
type DocumentScraperGetRequest struct {
NoticeID string `param:"notice_id" valid:"required~Notice ID is required"`
}
// DocumentScraperTenderResponse represents the response for a tender returned to the document scraper service.
//
// ContractFolderID is the TED procedure identifier (BT-04 / ContractFolderID),
// included so the scraper can build the MinIO upload path for this notice:
//
// PROC_<contract_folder_id>/<notice_publication_id>/<file>
type DocumentScraperTenderResponse struct {
ContractFolderID string `json:"contract_folder_id"`
NoticePublicationID string `json:"notice_publication_id"`
DocumentURL string `json:"document_url"`
Title string `json:"title"`
Description string `json:"description"`
}
// DocumentScraperListResponse represents the paginated list response
type DocumentScraperListResponse struct {
Tenders []DocumentScraperTenderResponse `json:"tenders"`
}