deskription changed

This commit is contained in:
merdan 2023-07-10 17:56:58 +05:00
parent ffeb9f87d1
commit 7572d41cd4
2 changed files with 3 additions and 3 deletions

View File

@ -226,9 +226,9 @@ func CreateJSONFromModel(model models.TrendyolProductDetailModel) map[string]int
json["images"] = model.Images json["images"] = model.Images
json["brand"] = model.Brand.Name json["brand"] = model.Brand.Name
json["cinsiyet"] = model.Gender.Name json["cinsiyet"] = model.Gender.Name
json["description"] = model.Description //json["description"] = model.Description
json["descriptions"] = model.ContentDescriptions json["descriptions"] = model.ContentDescriptions
json["short_description"] = model.Description //json["short_description"] = model.Description
// nested structure // nested structure
json["price"] = make(map[string]interface{}) json["price"] = make(map[string]interface{})
json["price"].(map[string]interface{})["originalPrice"] = model.Price.OriginalPrice json["price"].(map[string]interface{})["originalPrice"] = model.Price.OriginalPrice

View File

@ -159,7 +159,7 @@ type TrendyolProductDetailModel struct {
ProductCode string `json:"productCode"` ProductCode string `json:"productCode"`
Name string `json:"name"` Name string `json:"name"`
NameWithProductCode string `json:"nameWithProductCode"` NameWithProductCode string `json:"nameWithProductCode"`
Description string `json:"description"` //Description string `json:"description"`
ContentDescriptions []struct { ContentDescriptions []struct {
Description string `json:"description"` Description string `json:"description"`
Bold bool `json:"bold"` Bold bool `json:"bold"`