文档
测试

根据店铺id查询菜品

GET
http://localhost:8080/food/getByShop/4/1

接口描述

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

请求参数

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

响应参数

参数名
类型
描述
必填
status
int
示例:200
必填
data
object
数据字典
必填
total
int
示例:8
必填
list
array
数据列表
必填
id
int
示例:7
必填
category_id
int
示例:2
必填
shop_id
int
示例:4
必填
name
string
示例:米饭
必填
description
string
示例:好吃
必填
price
float
示例:23.3
必填
units
string
示例:份
必填
status
int
示例:4
必填
url
string
示例:7.jpg
必填
pageNum
int
示例:2
必填
pageSize
int
示例:2
必填
size
int
示例:2
必填
startRow
int
示例:3
必填
endRow
int
示例:4
必填
pages
int
示例:4
必填
prePage
int
示例:1
必填
nextPage
int
示例:3
必填
isFirstPage
boolean
示例:false
必填
isLastPage
boolean
示例:false
必填
hasPreviousPage
boolean
示例:true
必填
hasNextPage
boolean
示例:true
必填
navigatePages
int
示例:8
必填
navigatepageNums
array
数据列表
必填
navigateFirstPage
int
示例:1
必填
navigateLastPage
int
示例:4
必填