文档
测试

根据菜品的2级分类查询

GET
http://localhost:8080/food/getByCategory/2/1

接口描述

该接口根据用户提供二级分类id(附在路径第一个)和价格排序方式(附在路径第二个),以及分页设置查询菜品信息

请求参数

参数名
类型
描述
必填
pageNum
int
示例:1
必填
pageSize
int
示例:2
必填

响应参数

参数名
类型
描述
必填
status
int
示例:200
必填
data
object
数据字典
必填
total
int
示例:8
必填
list
array
数据列表
必填
id
int
示例:25
必填
category_id
int
示例:2
必填
shop_id
int
示例:4
必填
name
string
示例:大茎秆植物
必填
description
string
示例:Good
必填
price
int
示例:12
必填
units
string
示例:斤
必填
status
int
示例:1
必填
url
string
示例:src/img
必填
pageNum
int
示例:1
必填
pageSize
int
示例:2
必填
size
int
示例:2
必填
startRow
int
示例:1
必填
endRow
int
示例:2
必填
pages
int
示例:4
必填
prePage
int
示例:0
必填
nextPage
int
示例:2
必填
isFirstPage
boolean
示例:true
必填
isLastPage
boolean
示例:false
必填
hasPreviousPage
boolean
示例:false
必填
hasNextPage
boolean
示例:true
必填
navigatePages
int
示例:8
必填
navigatepageNums
array
数据列表
必填
navigateFirstPage
int
示例:1
必填
navigateLastPage
int
示例:4
必填