Last active
August 29, 2015 14:07
-
-
Save zolotyh/9dafb16426aadc13206b to your computer and use it in GitHub Desktop.
Чтение menu для плитки (только 2 уровня вложенности)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 1, | |
"name": "menu 1", | |
"description": "menu 1 desc", | |
"items": [{ | |
"id": 1, | |
"path": [{ | |
"id": 1, | |
"name": "Супы" | |
}], | |
"object": { | |
"id": 1, | |
"name": "Супы", | |
"color": "#333", | |
"childrens": [{ | |
"id": 3, | |
"path": [{ | |
"id": 2, | |
"name": "Котлетки" | |
}, { | |
"id": 1, | |
"name": "Супы" | |
}], | |
"object": { | |
"id": 2, | |
"name": "Котлетки", | |
"color": "#444", | |
}, | |
"type": "category" | |
}] | |
}, | |
"type": "category" | |
}, { | |
"id": 2, | |
"path": null, | |
"object": { | |
"id": 1, | |
"name": "Кабачковый суп", | |
"shortName": "Суп", | |
"image": "sup.jpg", | |
"parents": [ | |
{ | |
"id": "", | |
"name": "", | |
"color": "" | |
} | |
], | |
"metaProduct": { | |
"modilfiers": [ | |
{ | |
"id": 1, | |
"name": "Модификатор", | |
"shortName": "Имя модификтора в чеке", | |
"img": "img.url", | |
"price": { | |
"type": "absolute/relative", | |
"value": "+-int" | |
} | |
} | |
], | |
"baseModifierId": 1, | |
"modilfiersJSON": [{ | |
"name": "Группа", "values": [1,2,3,4] | |
}, 1,2,3,4] | |
}, | |
"baseModifier": { | |
"price": { | |
type: "", | |
value: "" | |
} | |
}, | |
// "price": { | |
// "value": 3.00, | |
// "type": "Usd" | |
// } | |
}, | |
"type": "product" | |
}], | |
"path": [] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Кабачковый суп", | |
"shortName": "Суп", | |
"imageUrl": "<url с гугла>", | |
"parents": [ | |
{ | |
"id": "", | |
"name": "", | |
"color": "" | |
} | |
], | |
"metaProduct": { | |
"modilfiers": [ | |
{ | |
"id": 1, // Если есть id, то редактирование, если нет, то создание, если id нет - удалять модификатор | |
"name": "Модификатор", | |
"shortName": "Имя модификтора в чеке", | |
"img": "img.url", | |
"price": { | |
"type": "absolute/relative", | |
"value": "+-int" | |
} | |
} | |
], | |
"baseModifier": { | |
"price": { | |
type: "", | |
value: "" | |
} | |
}, | |
"modilfiersJSON": [{ | |
"name": "Группа", "values": [1,2,3,4] | |
}, 1,2,3,4] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "Кабачковый суп", | |
"shortName": "Суп", | |
"favorites": true/false, | |
"imageUrl": "<url с гугла>", | |
"parents": [ | |
{ | |
"id": "", | |
"name": "", | |
"color": "" | |
} | |
], | |
"metaProduct": { | |
"metaCatalogProductID": 1, | |
"modilfiers": [ | |
{ | |
"id": 1, // Если есть id, то редактирование, если нет, то создание, если id нет - удалять модификатор | |
"name": "Модификатор", | |
"shortName": "Имя модификтора в чеке", | |
"img": "img.url", | |
"price": { | |
"type": "absolute/relative", | |
"value": "+-int" | |
} | |
} | |
], | |
"baseModifier": { | |
"price": { | |
type: "", | |
value: "" | |
} | |
}, | |
"modilfiersJSON": [{ | |
"name": "Группа", "values": [1,2,3,4] | |
}, 1,2,3,4] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment