文档
测试

推荐菜谱

POST
https://menutest.cloudlustre.cn/api/cookMenu/getDetailByRecommend

接口描述

推荐菜谱

请求头

参数名
类型
描述
必填
Content-Type
string
application/json;charset=UTF-8
必填
Client
string
终端类型:网页“web”、手机“phone”、设备端“device”
必填
Authorization
string
token
必填

请求参数

参数名
类型
描述
必填
mOnline
int
是否上线 1表示上线的菜谱,2表示存在但未上线的菜谱 示例:1
必填
limit
int
限制数量,即每次获取的菜谱个数
必填
page
int
页数,和limit相匹配,1获取1-5菜谱,2获取6-10菜谱 示例:1
必填
fromDev
string
从哪里获取(手机,设备端) 示例:device
必填
mRecommend
int
示例:1
必填

成功返回

参数名
类型
描述
必填
code
int
返回码,200表示成功
必填
userid
int
用户ID
必填
nickname
string
昵称
必填
data
object
数据字典
必填
返回的菜谱
object
数据字典
必填
cName
string
菜谱分类名称
必填
mName
string
珍珠圆子
必填
mId
int
菜谱编号
必填
cId
int
菜谱分类编号
必填
foods
object
事物分类
必填
fValue
int
数量
必填
fUnit
string
单位
必填
fName
string
名称
必填
fId
int
食物编号
必填
message
string
返回说明 示例:请求成功
必填
success
boolean
返回状态,成功:true,失败:false。示例:true
必填

返回示例

{ "data": [{ "cName": "美味蒸", "mName": "珍珠圆子", "mId": 41, "cId": 2, "foods": [{ "fValue": "4", "fId": "547", "fUnit": "克", "fName": "盐" }, { "fValue": "10", "fId": "546", "fUnit": "克", "fName": "生粉" }, { "fValue": "1", "fId": "545", "fUnit": "小块", "fName": "姜" }, { "fValue": "50", "fId": "544", "fUnit": "克", "fName": "马蹄" }, { "fValue": "200", "fId": "543", "fUnit": "克", "fName": "猪肉" }, { "fValue": "50", "fId": "542", "fUnit": "克", "fName": "糯米" }], "mImg": "/uploadImage/main1621926122069.jpeg" }, ], "message": "请求成功", "code": 200, "success": true }