- 骑手端
- 系统调度
- 运单管理
- 商家后台管理
- 分类相关接口
- 员工相关接口
- 套餐相关接口
- 工作台接口
- 店铺操作接口
- 数据统计相关接口
- 菜品相关接口
- 订单管理接口
- 通用接口
- 用户后台管理
- 苍穹外卖-数据字段说明
修改套餐
开发中
苍穹外卖3.0-商家管理端8080
http://localhost:8080
苍穹外卖3.0-商家管理端8080
http://localhost:8080
PUT
/admin/setmeal
套餐相关接口
责任人:未设置
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
authentication
string
可选
默认值:
eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTU5MTg4NjksInVzZXJJZCI6Mn0.g_n-gEqouVU-Q0kekBSwGSBSYbsPAMStnzHhYwqbf0o
token
string
可选
默认值:
eyJhbGciOiJIUzI1NiJ9.eyJlbXBJZCI6MSwiZXhwIjoxNzAxOTQxNzQwfQ.XdIWK08eF7QaozVIEqg07FLWyAj-7bQSGWOdrnb92cY
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>
关系表主键值
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 PUT 'http://localhost:8080/admin/setmeal' \
--header 'authentication: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTU5MTg4NjksInVzZXJJZCI6Mn0.g_n-gEqouVU-Q0kekBSwGSBSYbsPAMStnzHhYwqbf0o' \
--header 'token: eyJhbGciOiJIUzI1NiJ9.eyJlbXBJZCI6MSwiZXhwIjoxNzAxOTQxNzQwfQ.XdIWK08eF7QaozVIEqg07FLWyAj-7bQSGWOdrnb92cY' \
--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"
}

扫码加入黑马微信交流群
加入传智黑马训练营,月薪飞起不是梦

