- 苍穹外卖-管理端
- 分类相关接口
- 员工相关接口
- 套餐相关接口
- 工作台接口
- 店铺操作接口
- 数据统计相关接口
- 菜品相关接口
- 订单管理接口
- 通用接口
- 苍穹外卖-C端
- C端-分类接口
- C端-地址簿接口
- C端-套餐浏览接口
- C端-店铺操作接口
- C端-用户接口
- C端-菜品浏览接口
- C端-订单接口
- C端-购物车接口
新增套餐
开发中
POST
/admin/setmeal
套餐相关接口
最后修改时间:2023-11-02 08:17:23
责任人:未设置
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
categoryId
integer <int64>
分类id
description
string
套餐描述
id
integer <int64>
套餐id
image
string
套餐图片
name
string
套餐名称
price
number
套餐价格
setmealDishes
array[object (SetmealDish) {6}]
套餐包含的菜品
copies
integer <int32>
份数
dishId
integer <int64>
菜品id
id
integer <int64>
套餐和菜品关系id
name
string
菜品名称
price
number
菜品价格
setmealId
integer <int64>
套餐id
status
integer <int32>
必需
示例
{
"categoryId": 0,
"description": "string",
"id": 0,
"image": "string",
"name": "string",
"price": 0,
"setmealDishes": [
{
"copies": 0,
"dishId": 0,
"id": 0,
"name": "string",
"price": 0,
"setmealId": 0
}
],
"status": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://petstore-demo.apifox.com/admin/setmeal' \
--header 'Content-Type: application/json' \
--data-raw '{
"categoryId": 0,
"description": "string",
"id": 0,
"image": "string",
"name": "string",
"price": 0,
"setmealDishes": [
{
"copies": 0,
"dishId": 0,
"id": 0,
"name": "string",
"price": 0,
"setmealId": 0
}
],
"status": 0
}'
返回响应
🟢200成功
application/json
Body
code
integer <int32>
必需
data
object
可选
msg
string
可选
示例
{
"code": 0,
"data": {},
"msg": "string"
}