点餐收银端

石化点餐项目


旧商品列表增加搜索

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>旧商品列表增加搜索接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>https://food.taihuyun.vip/api/foodcash.goods/food?applet_id=1&amp;shop_id=1&amp;token=8014374705939b271a346001006d8aa5&amp;goods_name=西红柿</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET</li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">applet_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>应用程序ID</td> </tr> <tr> <td style="text-align: left;">shop_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>门店ID</td> </tr> <tr> <td style="text-align: left;">token</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>用户身份验证的令牌</td> </tr> <tr> <td style="text-align: left;">goods_name</td> <td style="text-align: left;">否</td> <td style="text-align: left;">string</td> <td>菜品名关键字搜索</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 1, "msg": "success", "data": { "category": [ { "category_id": 3, "name": "东北菜", "parent_id": 0, "image_id": 0, "sort": 2, "shop_id": 1, "maker_id": 3, "applet_id": 1, "create_time": "2022-05-29 14:36:17", "update_time": "2022-09-22 19:50:03", "count": 1, "goods": [ { "goods_id": 7, "goods_name": "西红柿炒鸡蛋", "selling_point": "健康营养", "category_id": 3, "spec_type": 10, "deduct_stock_type": 20, "content": "", "sales_initial": 0, "sales_actual": 299483, "goods_sort": 4, "goods_status": { "text": "已上架", "value": 10 }, "audit_status": { "text": "已通过审核", "value": 10 }, "pack_price": 0, "is_delete": 0, "is_recommend": { "text": "否", "value": 0 }, "shop_id": 1, "applet_id": 1, "create_time": "2022-06-04 13:49:16", "update_time": "2022-12-06 16:02:20", "total_num": "1", "specData": null, "spec": [ { "goods_spec_id": 478, "spec_sku_id": "", "goods_id": 7, "image_id": 0, "goods_no": "", "goods_price": "6.00", "line_price": "8.00", "materials": null, "stock_num": 0, "goods_weight": 0, "goods_sales": 16, "applet_id": 1, "create_time": "2022-09-23 18:59:55", "update_time": "2022-12-06 16:02:20" } ], "image": [ { "id": 262, "goods_id": 7, "image_id": 10126, "applet_id": 1, "create_time": "2022-09-23 18:59:55", "file_path": "20220923/e6f5b8bdc2b107ae578502ce48c8aa58.png", "url": "https://food.taihuyun.vip/uploads/20220923/e6f5b8bdc2b107ae578502ce48c8aa58.png", "domain": "" } ], "spec_rel": [], "goods_sales": 299483, "stock": 0 } ], "image": null } ], "order_total_num": 2, "order_total_price": "60.00", "goodslist": [ { "goods_id": 7, "goods_name": "西红柿炒鸡蛋", "selling_point": "健康营养", "category_id": 3, "spec_type": 10, "deduct_stock_type": 20, "sales_initial": 0, "sales_actual": 299483, "goods_sort": 4, "goods_status": { "text": "已上架", "value": 10 }, "audit_status": { "text": "已通过审核", "value": 10 }, "pack_price": 0, "is_delete": 0, "is_recommend": { "text": "否", "value": 0 }, "shop_id": 1, "applet_id": 1, "create_time": "2022-06-04 13:49:16", "update_time": "2022-12-06 16:02:20", "goods_sku_id": "", "goods_sku": { "goods_spec_id": 478, "spec_sku_id": "", "goods_id": 7, "image_id": 0, "goods_no": "", "goods_price": "6.00", "line_price": "8.00", "materials": null, "stock_num": 0, "goods_weight": 0, "goods_sales": 16, "applet_id": 1, "create_time": "2022-09-23 18:59:55", "update_time": "2022-12-06 16:02:20", "image": null, "goods_attr": "" }, "goods_price": "6.00", "total_num": "1", "total_price": "6.00", "image": [ { "id": 262, "goods_id": 7, "image_id": 10126, "applet_id": 1, "create_time": "2022-09-23 18:59:55", "file_path": "20220923/e6f5b8bdc2b107ae578502ce48c8aa58.png", "url": "https://food.taihuyun.vip/uploads/20220923/e6f5b8bdc2b107ae578502ce48c8aa58.png", "domain": "" } ], "spec_rel": [], "goods_sales": 299483, "stock": 0 } ] } }</code></pre> <h5>返回参数说明</h5> <ul> <li>返回状态代码: 200</li> </ul> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">category.category_id</td> <td style="text-align: left;">int</td> <td>分类ID</td> </tr> <tr> <td style="text-align: left;">category.name</td> <td style="text-align: left;">string</td> <td>菜品名称</td> </tr> <tr> <td style="text-align: left;">category.maker_id</td> <td style="text-align: left;">int</td> <td>创建ID</td> </tr> <tr> <td style="text-align: left;">category.image</td> <td style="text-align: left;">string</td> <td>图片路径</td> </tr> <tr> <td style="text-align: left;">category.sort</td> <td style="text-align: left;">int</td> <td>分类、种类</td> </tr> <tr> <td style="text-align: left;">category.create_time</td> <td style="text-align: left;">string</td> <td>创建时间</td> </tr> <tr> <td style="text-align: left;">category.goods.goods_name</td> <td style="text-align: left;">string</td> <td>菜品名称</td> </tr> <tr> <td style="text-align: left;">category.goods.content</td> <td style="text-align: left;">string</td> <td>菜品简介</td> </tr> <tr> <td style="text-align: left;">category.goods.goods_status.value</td> <td style="text-align: left;">int</td> <td>菜品状态;10.已上架;20.未上架</td> </tr> <tr> <td style="text-align: left;">category.goods.selling_point</td> <td style="text-align: left;">string</td> <td>菜品描述</td> </tr> <tr> <td style="text-align: left;">category.goods.audit_status.value</td> <td style="text-align: left;">int</td> <td>审核状态;10.已通过审核;20.未通过</td> </tr> <tr> <td style="text-align: left;">category.goods.image.url</td> <td style="text-align: left;">string</td> <td>菜品图片路径</td> </tr> <tr> <td style="text-align: left;">category.goods.spec.goods_price</td> <td style="text-align: left;">string</td> <td>菜品价格</td> </tr> <tr> <td style="text-align: left;">category.goods.spec.line_price</td> <td style="text-align: left;">string</td> <td>菜品原价格</td> </tr> <tr> <td style="text-align: left;">category.goods.pack_price</td> <td style="text-align: left;">string</td> <td>打包价格</td> </tr> <tr> <td style="text-align: left;">category.goods.total_num</td> <td style="text-align: left;">string</td> <td>数量</td> </tr> <tr> <td style="text-align: left;">category.goodslist.goods_name</td> <td style="text-align: left;">string</td> <td>搜索到的菜品名称</td> </tr> <tr> <td style="text-align: left;">category.goodslist.goods_status.value</td> <td style="text-align: left;">int</td> <td>搜索到的菜品状态;10.已上架;20.未上架</td> </tr> <tr> <td style="text-align: left;">category.goodslist.selling_point</td> <td style="text-align: left;">string</td> <td>搜索到的菜品描述</td> </tr> <tr> <td style="text-align: left;">category.goodslist.audit_status.value</td> <td style="text-align: left;">int</td> <td>搜索到的审核状态;10.已通过审核;20.未通过</td> </tr> <tr> <td style="text-align: left;">category.goodslist.image.url</td> <td style="text-align: left;">string</td> <td>搜索到的菜品图片路径</td> </tr> <tr> <td style="text-align: left;">category.goodslist.goods_price</td> <td style="text-align: left;">string</td> <td>搜索到的菜品价格</td> </tr> <tr> <td style="text-align: left;">category.goodslist.pack_price</td> <td style="text-align: left;">string</td> <td>搜索到的打包价格</td> </tr> <tr> <td style="text-align: left;">category.goodslist.total_num</td> <td style="text-align: left;">int</td> <td>搜索到的数量</td> </tr> <tr> <td style="text-align: left;">category.goodslist.total_price</td> <td style="text-align: left;">string</td> <td>搜索到的总价格</td> </tr> <tr> <td style="text-align: left;">category.goodslist.goods_sku.line_price</td> <td style="text-align: left;">string</td> <td>搜索到的菜品原价格</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看基本参数中的参数说明</li> </ul>

页面列表

ITEM_HTML