From d86a8d84473a33918b07fb3332759ec962e4e027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?old=E6=98=93?= <156663459@qq.com> Date: Wed, 23 Jul 2025 14:54:34 +0800 Subject: [PATCH] add /meal/product/detail --- mock-config.json | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/mock-config.json b/mock-config.json index 400c37c..c0d6e56 100644 --- a/mock-config.json +++ b/mock-config.json @@ -512,6 +512,72 @@ } } }, +{ + "method": "GET", + "path": "/api/meal/product/detail", + "response": { + "id": 1, + "name": "家庭饭格子荤素自选", + "cover": "https://res.klyj.jinzejk.com/img/taocan01.png", + "price": 120.0, + "unit": "份", + "weight": "600g", + "productNumber": "1015955073277", + "ingredient": "鸡肉", + "cartTotalPrice": 48.0, + "cartExtra": { + "shipping": 2, + "packing": 1 + }, + "cartCount": 3 + }, + "swagger": { + "summary": "获取点餐商品详情", + "description": "根据商品 ID 获取点餐商品的详情,包括封面图、名称、规格、价格、主料、购物车信息等。", + "parameters": [ + { + "name": "id", + "in": "query", + "required": true, + "schema": { + "type": "integer" + }, + "description": "商品ID" + } + ], + "responses": { + "200": { + "description": "商品详情信息", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "id": { "type": "integer" }, + "name": { "type": "string" }, + "cover": { "type": "string" }, + "price": { "type": "number" }, + "unit": { "type": "string" }, + "weight": { "type": "string" }, + "productNumber": { "type": "string" }, + "ingredient": { "type": "string" }, + "cartTotalPrice": { "type": "number" }, + "cartCount": { "type": "integer" }, + "cartExtra": { + "type": "object", + "properties": { + "shipping": { "type": "number" }, + "packing": { "type": "number" } + } + } + } + } + } + } + } + } + } +}, { "method": "GET", "path": "/api/lesson/category",