前言:昨天分享了當餐廳老闆在使用APP時,在訂單管理頁面會操作甚麼功能,進而決定他需要哪一些資料欄位使用
緊接著,要分享第二個 Views :餐點管理
以下是目前根據以上發想後的資料格式:
{
"id": 1,
"foodName": "點心小拼盤",
"foodPrice": 80,
"description": "套餐加價",
"originPrice": 110,
"discountPrice": 90,
"foodImage": ["https://images.unsplash.com/photo-1481931715705-36f5f79f1f3d?q=80&w=2112&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D", "https://images.unsplash.com/photo-1481931715705-36f5f79f1f3d?q=80&w=2112&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"],
"category": "早餐",
"availabilityTime": "07:00-10:00",
"stockQuantity": 50,
"nutritionalInformation": {
"calories": 250,
"protein": 10,
"fat": 15,
"carbohydrates": 20
},
"salesStatus": "即將上架",
"discountEvents": ["週末特惠"],
"rating": 4.5,
"tags": ["熱門", "推薦"],
"supplier": "本地農場",
"preparationTime": "10分鐘",
"ingredients": ["麵包", "奶油", "火腿", "生菜"],
"additionalOptions": ["加蛋", "加奶"],
"promotionTag": "新品",
"recipe": "將麵包切片,塗上奶油,加上火腿和生菜..."
}