获取所有商品接口
[TOC]
简要描述
- 获取所有商品接口
请求URL
http://localhost:3000/front/api/menus/getall
请求方式
- GET
参数
无
返回示例
{
"error_code": 0,
"msg": "商品获取成功!",
"data": [
{
"_id": "6409840e96966a97cc8b7d78",
"name": "芋头饺子",
"price": 13,
"imgpath": "uploads/1678345553685.png",
"specifications": "小份15个¥16.00=====小份16个¥16.00",
"kind": "汤饺=====蒸饺",
"enable": true,
"catname": "饺子"
},
{
"_id": "6409841e96966a97cc8b7d7b",
"name": "韭菜饺子",
"price": 13,
"imgpath": "uploads/1678345595640.png",
"specifications": "小份15个¥16.00=====大份22个¥30.00",
"kind": "干饺=====汤饺",
"enable": true,
"catname": "饺子"
},
...
]
}