搜索菜品
GET
http://localhost:8080/food/search/米饭/1
接口描述
根据输入的内容(路径参数1)和是否排序(sc,1为升序,2是降序,0为不排序);其中还要指定分页的参数
请求参数
参数名
类型
描述
必填
pageNum
int
示例:1
必填
pageSize
int
示例:2
必填
响应参数
参数名
类型
描述
必填
status
int
示例:200
必填
total
int
示例:6
必填
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
示例:1
必填
pageSize
int
示例:2
必填
size
int
示例:2
必填
startRow
int
示例:1
必填
endRow
int
示例:2
必填
pages
int
示例:3
必填
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
示例:3
必填