description changed
This commit is contained in:
parent
a4f42ef290
commit
2e8541582d
|
|
@ -159,7 +159,7 @@ type TrendyolProductDetailModel struct {
|
|||
ProductCode string `json:"productCode"`
|
||||
Name string `json:"name"`
|
||||
NameWithProductCode string `json:"nameWithProductCode"`
|
||||
Description string `json:"description"`
|
||||
//Description string `json:"description"`
|
||||
ContentDescriptions []struct {
|
||||
Description string `json:"description"`
|
||||
Bold bool `json:"bold"`
|
||||
|
|
|
|||
|
|
@ -226,9 +226,9 @@ func CreateJSONFromModel(model models.TrendyolProductDetailModel) map[string]int
|
|||
json["images"] = model.Images
|
||||
json["brand"] = model.Brand.Name
|
||||
json["cinsiyet"] = model.Gender.Name
|
||||
json["description"] = model.Description
|
||||
//json["description"] = model.Description
|
||||
json["descriptions"] = model.ContentDescriptions
|
||||
json["short_description"] = model.Description
|
||||
//json["short_description"] = model.Description
|
||||
// nested structure
|
||||
json["price"] = make(map[string]interface{})
|
||||
json["price"].(map[string]interface{})["originalPrice"] = model.Price.OriginalPrice
|
||||
|
|
|
|||
Loading…
Reference in New Issue