ordermeal

移动端点餐系统


菜品列表

[TOC]

简要描述
  • 菜品
请求URL
  • http://localhost:8000/front/api/menu/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": "饺子"},
    *   \-

        {
        *   "\_id": "6409842e96966a97cc8b7d7e",
        *   "name": "香菜饺子",
        *   "price": 14,
        *   "imgpath": "uploads/1678345703511.png",
        *   "specifications": "小份15个¥16.00=====中份13个¥25.00",
        *   "kind": "干饺=====煎饺",
        *   "enable": true,
        *   "catname": "饺子"},
    *   \-

        {
        *   "\_id": "6409844296966a97cc8b7d81",
        *   "name": "榴莲饺子",
        *   "price": 50,
        *   "imgpath": "uploads/1678345780662.png",
        *   "specifications": "小份15个¥16.00=====大份22个¥30.00",
        *   "kind": "干饺=====蒸饺",
        *   "enable": true,
        *   "catname": "饺子"},
    *   \-

        {
        *   "\_id": "6409846296966a97cc8b7d84",
        *   "name": "鱼子酱饺子",
        *   "price": 100,
        *   "imgpath": "uploads/1678345807118.png",
        *   "specifications": "大份22个¥30.00=====中份13个¥25.00",
        *   "kind": "干饺=====煎饺=====蒸饺",
        *   "enable": true,
        *   "catname": "饺子"},
    *   \-

        {
        *   "\_id": "640984b896966a97cc8b7d87",
        *   "name": "松露饺子",
        *   "price": 999,
        *   "imgpath": "uploads/1678346222594.png",
        *   "specifications": "大份22个¥30.00",
        *   "kind": "干饺",
        *   "enable": true,
        *   "catname": "饺子"}\]

}
返回参数说明
参数名 类型 说明
error_code number 错误码,0
msg string 返回值,查询成功;
data string 查询菜品数据
备注
  • 更多返回错误代码请看首页的错误代码描述

页面列表

ITEM_HTML