Update rank field type in tender and onboarding response structures
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
- Changed the `Rank` field type from `string` to `int` in the `RecommendedTenderResponse` struct within the `company` domain for better data representation. - Updated the `Rank` field type from `string` to `int` in the `TenderResponse` struct within the `tender` domain to ensure consistency in ranking data. - Modified the `Rank` field type from `string` to `int` in the `RecommendedTender` struct within the AI summarizer package to align with the updated data structure. This update enhances the data integrity and consistency across the tender management system by standardizing the rank representation as an integer.
This commit is contained in:
@@ -192,7 +192,7 @@ type OnboardingResponse struct {
|
|||||||
|
|
||||||
// RecommendedTenderResponse is one ranked tender recommendation from the AI service.
|
// RecommendedTenderResponse is one ranked tender recommendation from the AI service.
|
||||||
type RecommendedTenderResponse struct {
|
type RecommendedTenderResponse struct {
|
||||||
Rank string `json:"rank"`
|
Rank int `json:"rank"`
|
||||||
TenderID string `json:"tender_id"`
|
TenderID string `json:"tender_id"`
|
||||||
Analysis string `json:"analysis"`
|
Analysis string `json:"analysis"`
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -234,7 +234,7 @@ type TenderResponse struct {
|
|||||||
OverallSummary string `json:"overall_summary,omitempty"`
|
OverallSummary string `json:"overall_summary,omitempty"`
|
||||||
Language string `json:"language,omitempty"`
|
Language string `json:"language,omitempty"`
|
||||||
|
|
||||||
Rank string `json:"rank,omitempty"`
|
Rank int `json:"rank,omitempty"`
|
||||||
Analysis string `json:"analysis,omitempty"`
|
Analysis string `json:"analysis,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -266,7 +266,7 @@ type RecommendRequest struct {
|
|||||||
|
|
||||||
// RecommendedTender is one ranked tender from POST /recommend.
|
// RecommendedTender is one ranked tender from POST /recommend.
|
||||||
type RecommendedTender struct {
|
type RecommendedTender struct {
|
||||||
Rank string `json:"rank"`
|
Rank int `json:"rank"`
|
||||||
TenderID string `json:"tender_id"`
|
TenderID string `json:"tender_id"`
|
||||||
Analysis string `json:"analysis"`
|
Analysis string `json:"analysis"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user