点餐收银端

石化点餐项目


根据分类获取商品列表

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>根据分类获取商品列表接口</li> </ul> <h5>请求URL</h5> <ul> <li><code>https://food.taihuyun.vip/api/foodcash.goods/goodsCategoryList?applet_id=1&amp;shop_id=1&amp;token=8014374705939b271a346001006d8aa5&amp;category_id=2</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;">category_id</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>分类ID</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code> { "code": 1, "msg": "success", "data": [ { "category_id": 22, "name": "粤菜", "parent_id": 0, "image_id": 0, "sort": 5, "shop_id": 1, "maker_id": 1, "applet_id": 1, "create_time": "2022-06-28 16:45:04", "update_time": "2022-08-10 14:47:27", "count": 0, "goods": [ { "goods_id": 100, "goods_name": "豆豉凤爪", "selling_point": "软糯Q弹", "category_id": 22, "spec_type": 20, "deduct_stock_type": 20, "content": "", "sales_initial": 10, "sales_actual": 20, "goods_sort": 2, "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-09-23 18:27:21", "update_time": "2023-01-10 14:08:01", "total_num": 0, "specData": { "spec_attr": [ { "group_id": 32, "group_name": "数量", "spec_items": [ { "item_id": 105, "spec_value": "4" } ] } ], "spec_list": [ { "goods_spec_id": 471, "spec_sku_id": "107", "spec_name": "8", "rows": [], "form": { "image_id": 0, "image_url": "", "goods_no": "", "goods_price": "15.00", "line_price": "0.00", "stock_num": 0, "goods_weight": 0 } } ] }, "spec": [ { "goods_spec_id": 471, "spec_sku_id": "107", "goods_id": 100, "image_id": 0, "goods_no": "", "goods_price": "15.00", "line_price": "0.00", "materials": null, "stock_num": 0, "goods_weight": 0, "goods_sales": 11, "applet_id": 1, "create_time": "2022-09-23 18:27:55", "update_time": "2022-11-14 14:44:49", "sell_num": 0, "image": null } ], "image": [ { "id": 255, "goods_id": 100, "image_id": 10121, "applet_id": 1, "create_time": "2022-09-23 18:27:55", "file_path": "20220923/58a66e6949584a3328755e6f538dcaac.png", "url": "https://food.taihuyun.vip/uploads/20220923/58a66e6949584a3328755e6f538dcaac.png", "domain": "" } ], "spec_rel": [ { "spec_value_id": 107, "spec_value": "8", "spec_id": 32, "applet_id": 1, "create_time": "2022-09-23 18:26:41", "spec": { "spec_id": 32, "spec_name": "数量", "applet_id": 1, "create_time": "2022-09-23 18:26:36" }, "pivot": { "id": 232, "goods_id": 100, "spec_id": 32, "spec_value_id": 107, "applet_id": 1, "create_time": 0 } } ], "goods_sales": 30, "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_id</td> <td style="text-align: left;">int</td> <td>分类ID</td> </tr> <tr> <td style="text-align: left;">name</td> <td style="text-align: left;">string</td> <td>菜品名称</td> </tr> <tr> <td style="text-align: left;">maker_id</td> <td style="text-align: left;">int</td> <td>创建ID</td> </tr> <tr> <td style="text-align: left;">image</td> <td style="text-align: left;">string</td> <td>图片路径</td> </tr> <tr> <td style="text-align: left;">sort</td> <td style="text-align: left;">int</td> <td>分类、种类</td> </tr> <tr> <td style="text-align: left;">create_time</td> <td style="text-align: left;">string</td> <td>创建时间</td> </tr> <tr> <td style="text-align: left;">goods.goods_name</td> <td style="text-align: left;">string</td> <td>菜品名称</td> </tr> <tr> <td style="text-align: left;">goods.content</td> <td style="text-align: left;">string</td> <td>菜品简介</td> </tr> <tr> <td style="text-align: left;">goods.goods_status.value</td> <td style="text-align: left;">int</td> <td>菜品状态;10.已上架;20.未上架</td> </tr> <tr> <td style="text-align: left;">goods.selling_point</td> <td style="text-align: left;">string</td> <td>菜品描述</td> </tr> <tr> <td style="text-align: left;">goods.audit_status.value</td> <td style="text-align: left;">int</td> <td>审核状态;10.已通过审核;20.未通过</td> </tr> <tr> <td style="text-align: left;">goods.image.url</td> <td style="text-align: left;">string</td> <td>菜品图片路径</td> </tr> <tr> <td style="text-align: left;">goods.spec.goods_price</td> <td style="text-align: left;">string</td> <td>菜品价格</td> </tr> <tr> <td style="text-align: left;">goods.spec.line_price</td> <td style="text-align: left;">string</td> <td>菜品原价</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看基本参数中的参数说明</li> </ul>

页面列表

ITEM_HTML