文档
测试

商品列表(待完善)

POST
http://{{address}}/api/shop/product/index

请求参数

参数名
类型
描述
必填
category_id
int
示例:1
必填
keyword
string
关键词搜索。示例:2号
必填
sort
string
排序。字段|排序。示例:price|desc
必填
is_home_show
int
是否首页展示。示例:1
必填
is_recommend
int
是否推荐。示例:1
必填
is_new
int
是否新品。示例:1
必填
is_hot
int
是否热销。示例:1
必填

响应参数

参数名
类型
描述
必填
status
int
示例:1
必填
msg
string
示例:操作成功
必填
data
object
数据字典
必填
records
object
数据字典
必填
current_page
int
示例:1
必填
data
array
数据列表
必填
first_page_url
string
示例:http://app.haoxinyi.vip/api/shop/product/index?page=1
必填
from
object
示例:null
必填
last_page
int
示例:1
必填
last_page_url
string
示例:http://app.haoxinyi.vip/api/shop/product/index?page=1
必填
next_page_url
object
示例:null
必填
path
string
示例:http://app.haoxinyi.vip/api/shop/product/index
必填
per_page
int
示例:20
必填
prev_page_url
object
示例:null
必填
to
object
示例:null
必填
total
int
示例:0
必填