获取菜单
GET
https://dajiuye.net/api/diet/dietmenu/listtree
接口描述
获取所有的菜单,以多级数组的形式
响应参数
参数名
类型
描述
必填
msg
string
示例:success
必填
code
int
示例:0
必填
catId
int
示例:1
必填
name
string
示例:id为一的名字
必填
parentCid
int
示例:0(父级id)
必填
catLevel
int
示例:1(层级)
必填
showStatus
int
示例:1(展示状态)
必填
sort
int
示例:0(排序,暂可不管)
必填
icon
string
示例:(图片地址)
必填
quantityOfHeat
string
示例:22
必填
carbonWaterRatio
string
示例:23
必填
proportionOfFat
string
示例:23
必填
proportionOfProtein
string
示例:23
必填
catId
int
示例:2
必填
name
string
示例:3
必填
parentCid
int
示例:1
必填
catLevel
int
示例:2
必填
showStatus
int
示例:1
必填
sort
int
示例:2
必填
icon
string
示例:2
必填
quantityOfHeat
string
示例:2
必填
carbonWaterRatio
string
示例:2
必填
proportionOfFat
string
示例:2
必填
proportionOfProtein
string
示例:2
必填
catId
int
示例:4
必填
name
string
示例:1
必填
parentCid
int
示例:2
必填
catLevel
int
示例:3
必填
showStatus
int
示例:1
必填
sort
int
示例:111
必填
icon
string
示例:222
必填
quantityOfHeat
string
示例:4444
必填
carbonWaterRatio
string
示例:3333
必填
proportionOfFat
string
示例:555
必填
proportionOfProtein
string
示例:5555
必填
children
array
数据列表
必填