add product-list
parent
e6e126fc7e
commit
966ddd1c04
|
|
@ -355,6 +355,88 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/api/product/simple-list",
|
||||
"response": {
|
||||
"category": "单点",
|
||||
"totalPrice": 28.0,
|
||||
"shippingFee": 2.0,
|
||||
"packingFee": 1.0,
|
||||
"count": 3,
|
||||
"items": [
|
||||
{
|
||||
"id": "10001",
|
||||
"name": "青椒肉丝青椒肉丝",
|
||||
"desc": "份量600g",
|
||||
"price": 20.0,
|
||||
"count": 11,
|
||||
"image": "https://res.klyj.jinzejk.com/img/qingjiao1.png"
|
||||
},
|
||||
{
|
||||
"id": "10002",
|
||||
"name": "孜然排骨",
|
||||
"desc": "12块大排骨",
|
||||
"price": 18.0,
|
||||
"count": 12,
|
||||
"image": "https://res.klyj.jinzejk.com/img/ziran.png"
|
||||
},
|
||||
{
|
||||
"id": "10003",
|
||||
"name": "玉米排骨汤",
|
||||
"desc": "份量600g",
|
||||
"price": 12.0,
|
||||
"count": 20,
|
||||
"image": "https://res.klyj.jinzejk.com/img/yumitang.png"
|
||||
},
|
||||
{
|
||||
"id": "10004",
|
||||
"name": "套餐一",
|
||||
"desc": "份量600g",
|
||||
"price": 28.0,
|
||||
"count": 20,
|
||||
"image": "https://res.klyj.jinzejk.com/img/yumitang.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" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -363,4 +445,5 @@
|
|||
|
||||
|
||||
|
||||
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue