Card file : GWM

This commit is contained in:
Gowtham M 2025-01-30 16:26:14 +05:30
parent 85104c3e4d
commit fdf1166261
9 changed files with 16 additions and 0 deletions

14
main.go
View File

@ -486,6 +486,19 @@ func main() {
cRes := utils.ProcessChartData(chartData, languageSourceConverted, langKey)
var logoURL string
cardLogo := record.GetString("card_logo")
if cardLogo == "" {
logoURL = ""
} else {
logoURL = fmt.Sprintf("%s/api/files/charts/%s/%s",
baseUrl,
record.GetString("id"),
cardLogo,
)
}
chartHeadingKey := "chart_heading_" + language
tabHeadingKey := "tab_heading_" + language
// Prepare the structure with URL and its response
@ -502,6 +515,7 @@ func main() {
"chart_heading": record.GetString(chartHeadingKey),
"tab_heading": record.GetString(tabHeadingKey),
"unset_value": record.Get("unset_value"),
"card_logo": logoURL,
}
// Add the result to the aggregated response

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@ -0,0 +1 @@
{"user.cache_control":"","user.content_disposition":"","user.content_encoding":"","user.content_language":"","user.content_type":"image/png","user.metadata":{"original-filename":"averageLengthOfStay.png"},"md5":"/wPtLtddRDkeFZxAQTJM/g=="}

View File

@ -0,0 +1 @@
{"user.cache_control":"","user.content_disposition":"","user.content_encoding":"","user.content_language":"","user.content_type":"image/png","user.metadata":null,"md5":"wm5GWTiDEeBU/0WxUDPNLQ=="}