add /meal/product/detail

master
old易 2025-07-23 14:54:34 +08:00
parent eca884de0a
commit d86a8d8447
1 changed files with 66 additions and 0 deletions

View File

@ -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", "method": "GET",
"path": "/api/lesson/category", "path": "/api/lesson/category",