文档
测试

添加菜单(智能烤箱)

POST
/sys/device/smartOvenMenu/addDeviceCook

请求头

参数名
类型
描述
必填
AutoToken
必填

请求参数

参数名
类型
描述
必填
storeId
int
示例:100
必填
deviceId
int
示例:100
必填
classifyType
int
示例:0 0我的菜单,1分层菜单,2智能菜单
必填
cookAllTime
int
示例:472 烹饪总时间(我的菜單要传)
必填
cookBookBgColor
object
数据字典(我的菜單要传)
必填
colorCoding
string
示例:#1E90FF
必填
colorName
string
示例:藍色
必填
cookSort
string
示例:未分類菜單 菜单分类
必填
cookSortId
int
示例:9999 菜单分类id
必填
createTime
int
示例:1602728651522
必填
hierarchyMenuType
int
示例:0 0是p 1是M 2是双M
必填
cookIsNeedPreHeat
boolean
示例:true 是不是需要預熱
必填
cookName
string
示例:处于哈哈哈 菜谱名字
必填
stepList
array
步骤列表(我的菜單要传)
必填
argumentAllTime
int
示例:472 当前步骤完成的总时间
必填
argumentTime
int
示例:472 步骤时间
必填
coolFan
int
示例:1 1是手动 2是自动
必填
deltaTemp
int
示例:0 温度差
必填
fanGear
int
示例:3 风扇档位
必填
hum
int
示例:100 湿度
必填
argIsUseTime
boolean
示例:false 是不是使用步骤时间作为完成的标识
必填
argIsUsedDeltaMode
boolean
示例:false 是不是在使用delta模式
必填
mode
int
示例:1 模式
必填
preHeatMenu
boolean
示例:false 是否是预热菜单
必填
preHeat
int
示例:0 预热温度
必填
probeTemp
int
示例:0 探针温度
必填
temp
int
示例:100 温度
必填
waterGear
int
示例:3 喷水等级
必填
stepNumber
int
示例:1 步骤数(我的菜單要传)
必填
urlLogo
string
示例:http://oven-bin-kfc.oss-cn-shenzhen.aliyuncs.com/SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg(我的菜單要传)
必填
urlLogoOssName
string
示例:SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg(我的菜單要传)
必填
urlImageOssNames
array
数据列表(我的菜單要传)
必填
urlImagesPaths
array
数据列表(我的菜單要传)
必填
cookParameter
object
分层菜单的烹饪参数(参数和步骤列表的item一样的)(分层菜单不能为空!!)
必填
dishName
string
料理盘名称(我的菜單要传)
必填
foodsList
String
String列表 菜单的食材列表(可以为空)(我的菜單要传)
必填
cookStepList
String
菜单的步骤描述列表 (可以为空)(我的菜單要传)
必填
cookItemList
array
P 和 m 分层菜单的item列表(分层菜单不能为空!!)
必填
cookName
String
菜谱名字
必填
cookAllTime
int
烹饪总时间
必填
cookBookId
int
菜单的id
必填
urlLogoUrl
String
oss的地址
必填
urlLogoName
String
oss的名称
必填
cookBookBgColor
Object
和外层的cookBookBgColor一样的参数
必填
cookIdList
array
M分层菜单的item列表 (cookBookId的列表 , m分层类型不能为null)
必填
cookRemark
String
菜单描述(我的菜單要传)
必填
bookType
int
0是不预约 1是实时时间 2是延长时间
必填
bookHour
int
必填
bookMin
int
必填

说明 / 示例

{ "errorCode": "200", "errorMsg": "", "data": { "id": 18, "urlLogo": "http://oven-bin-kfc.oss-cn-shenzhen.aliyuncs.com/SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg", "urlLogoOssName": "SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg", "hierarchyMenuType": 0, "cookParameterStr": "null", "cookParameter": null, "cookBookBgColorStr": "{\"colorName\":\"藍色\",\"colorCoding\":\"#1E90FF\"}", "cookBookBgColor": { "colorName": "藍色", "colorCoding": "#1E90FF" }, "classifyType": 0, "cookIsNeedPreHeat": true, "cookAllTime": 472, "cookRemark": null, "dishName": null, "cookSortId": 9999, "cookSort": "未分類菜單", "stepNumber": 1, "cookDescribe": null, "cookName": "处于哈哈哈", "cookIdListStr": "null", "cookIdList": null, "sortNum": 2, "storeId": 100, "deviceId": 100, "maxSortNum": null, "urlImagesPathsStr": "[\"http://oven-bin-kfc.oss-cn-shenzhen.aliyuncs.com/SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg\",\"http://oven-bin-kfc.oss-cn-shenzhen.aliyuncs.com/SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg\",\"http://oven-bin-kfc.oss-cn-shenzhen.aliyuncs.com/SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg\"]", "urlImagesPaths": [ "http://oven-bin-kfc.oss-cn-shenzhen.aliyuncs.com/SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg", "http://oven-bin-kfc.oss-cn-shenzhen.aliyuncs.com/SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg", "http://oven-bin-kfc.oss-cn-shenzhen.aliyuncs.com/SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg" ], "urlImageOssNamesStr": "[\"SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg\",\"SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg\",\"SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg\"]", "urlImageOssNames": [ "SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg", "SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg", "SMART_OVEN_1inch/tiny-385-2020-10-15-10-24-04.jpg" ], "cookItemListStr": "null", "cookItemList": null, "cookStepListStr": "null", "cookStepList": null, "foodsListStr": "null", "foodsList": null, "stepListStr": "[{\"mode\":1,\"temp\":100,\"hum\":100,\"fanGear\":3,\"preHeat\":0,\"deltaTemp\":0,\"argumentTime\":472,\"probeTemp\":0,\"waterGear\":3,\"coolFan\":1,\"save\":false,\"argIsUseTime\":false,\"argIsUsedDeltaMode\":false}]", "stepList": [ { "mode": 1, "temp": 100, "hum": 100, "fanGear": 3, "preHeat": 0, "deltaTemp": 0, "argumentTime": 472, "probeTemp": 0, "waterGear": 3, "coolFan": 1, "save": false, "argIsUseTime": false, "argIsUsedDeltaMode": false } ] } }