diff --git a/models/product.go b/models/product.go index b9e3e55..26829a3 100644 --- a/models/product.go +++ b/models/product.go @@ -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"` diff --git a/repositories/ParseRepository.go b/repositories/ParseRepository.go index d9482d0..c7a6fec 100644 --- a/repositories/ParseRepository.go +++ b/repositories/ParseRepository.go @@ -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