ordermeal

点餐系统


关键字查询商品接口

[TOC]

简要描述
  • 关键字查询商品接口
请求URL
  • http://localhost:3000/front/api/menus/search/:keywords
请求方式
  • GET
参数
参数名 必选 类型 说明
keywords string 商品关键字
返回示例
{
     "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": "饺子"
          },
          ...
    ]
}

页面列表

ITEM_HTML