From cc0c602defd5b4f747f61caced0c5086859c9f9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com> Date: Wed, 16 Jul 2025 13:58:09 +0800 Subject: [PATCH] a --- mock-config.json | 75 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) diff --git a/mock-config.json b/mock-config.json index 61d426a..9480dc5 100644 --- a/mock-config.json +++ b/mock-config.json @@ -437,6 +437,80 @@ } } } +}, +{ + "method": "GET", + "path": "/api/product/setmeal-list", + "response": { + "category": "套餐", + "totalPrice": 480.0, + "shippingFee": 2.0, + "packingFee": 1.0, + "count": 3, + "items": [ + { + "id": "20001", + "name": "家庭饭格子荤素自选(含米饭热汤)", + "desc": "份量600g", + "price": 120.0, + "count": 2, + "image": "https://res.klyj.jinzejk.com/img/taocan01.png" + }, + { + "id": "20002", + "name": "招牌肉沫米粉套餐", + "desc": "热干粉+小炒肉+蔬菜拼配", + "price": 120.0, + "count": 1, + "image": "https://res.klyj.jinzejk.com/img/taocan03.png" + }, + { + "id": "20003", + "name": "鸡丝麻酱拌面套餐", + "desc": "份量600g", + "price": 120.0, + "count": 2, + "image": "https://res.klyj.jinzejk.com/img/taocan02.png" + } + ] + }, + "swagger": { + "summary": "获取套餐商品列表", + "description": "返回社区点餐中的套餐类商品信息", + "responses": { + "200": { + "description": "套餐数据", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "category": { "type": "string" }, + "totalPrice": { "type": "number" }, + "shippingFee": { "type": "number" }, + "packingFee": { "type": "number" }, + "count": { "type": "integer" }, + "items": { + "type": "array", + "items": { + "type": "object", + "properties": { + "id": { "type": "string" }, + "name": { "type": "string" }, + "desc": { "type": "string" }, + "price": { "type": "number" }, + "count": { "type": "integer" }, + "image": { "type": "string" } + } + } + } + } + } + } + } + } + } + } } @@ -446,4 +520,5 @@ + ]