ai translation refactor
This commit is contained in:
@@ -255,7 +255,8 @@ func (t *Tender) ToResponse() *TenderResponse {
|
||||
return t.ToResponseWithLanguage("")
|
||||
}
|
||||
|
||||
// ToResponseWithLanguage converts a Tender entity to TenderResponse.
|
||||
// ToResponseWithLanguage converts a Tender entity to TenderResponse using Mongo fields.
|
||||
// Detail endpoints overlay MinIO translations in the service layer.
|
||||
func (t *Tender) ToResponseWithLanguage(language string) *TenderResponse {
|
||||
title := t.Title
|
||||
description := t.Description
|
||||
|
||||
Reference in New Issue
Block a user