文档
测试

设置菜品库存

POST
http://1.15.80.200:8080/branch/prod/setProdMaxQuantity

接口描述

设置菜谱库存(可接)

请求头

参数名
类型
描述
必填
Authorization
string
Bearer token令牌
必填

请求参数

application/json
参数名
类型
描述
必填
menuId
string
菜谱编号
必填
dishType
string
商品类型 0.单品 1.套餐
必填
dishId
string
商品编号
必填
prodId
string
菜品编号
必填
standardId
string
规格编号:没有规格的单品规格编号为0 套餐规格编号为0
必填
maxQuantity
string
库存数
必填

请求示例

```josn { "menuId": "1407265004743651328", "dishType": "0", "prodId": "1424920878571708416", "dishId": "1407258213901234176", "standardId": "1415922184675950592", "maxQuantity": "3" } ```

响应参数

参数名
类型
描述
必填
msg
string
请求结果消息
必填
code
string
请求结果状态码
必填
data
object
返回结果业务对象
必填
menuId
string
菜谱编号
必填
dishType
string
商品类型 0.单品 2.套餐
必填
prodId
string
菜品编号
必填
dishId
string
商品编号
必填
standardId
string
规格编号:没有规格的单品规格编号为0 套餐规格编号为0
必填
maxQuantity
string
库存数
必填

返回示例

```json { "code": 200, "msg": null, "data": [ { "menuId": "1407265004743651328", "dishType": "2", "dishId": "1417672457072422912", "prodId": "1425653708104785920", "standardId": "0", "maxQuantity": "1" }, { "menuId": "1407265004743651328", "dishType": "0", "dishId": "1417672212729049088", "prodId": "1425654385468104704", "standardId": "0", "maxQuantity": "3" } ] } ```