文档
测试

商品列表

POST
https://zx.daoben.tech/web/index.php?_mall_id=1&r=api%2Fdefault%2Fgoods-list&page=1&cat_id=0&sort=1&exchangeable=1

请求参数

参数名
类型
描述
必填
_mall_id
int
示例:1
必填
r
string
示例:api/default/goods-list
必填
page
int
示例:1
必填
cat_id
int
示例:0------分类ID,查询全部商品传0
必填
sort
int
示例:1------排序:1=价格升序,2=价格降序
必填
exchangeable
int
示例:1------仅显示我能兑换:1=是,0=否
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
data
object
数据字典
必填
list
array
数据列表
必填
id
int
示例:1
必填
goods_warehouse_id
int
示例:1
必填
mch_id
int
示例:0
必填
sign
string
示例:
必填
name
string
示例:扫码支付
必填
subtitle
string
示例:
必填
cover_pic
string
示例:https://zx.daoben.tech/web/uploads/mall1/20220211/7903803c39e0779248a408a2ad7be113.png
必填
video_url
string
示例:
必填
original_price
string
示例:0.00
必填
unit
string
示例:件
必填
page_url
string
示例:/pages/goods/goods?id=1
必填
is_negotiable
int
示例:0
必填
is_level
int
示例:1
必填
level_price
int
示例:0
必填
price
string
示例:0.00
必填
price_content
string
示例:免费
必填
is_sales
int
示例:1
必填
sales
string
示例:已售1件
必填
goods_stock
int
示例:9999999
必填
goods_num
int
示例:9999999
必填
type
string
示例:goods
必填
level_show
int
示例:2
必填
pagination
object
数据字典
必填
defaultPageSize
int
示例:10
必填
pageSize
int
示例:10
必填
total_count
int
示例:1
必填
page_count
int
示例:1
必填
current_page
int
示例:1
必填
pageParam
string
示例:page
必填
pageSizeParam
string
示例:per-page
必填
forcePageParam
boolean
示例:true
必填
route
object
示例:null
必填
params
object
示例:null
必填
urlManager
object
示例:null
必填
validatePage
boolean
示例:true
必填
totalCount
int
示例:1
必填
pageSizeLimit
array
数据列表
必填