文档
测试

商品查询

GET
http://193.112.198.123:30050/api/store_spu_api?filters={ "store_id":101}

接口描述

按条件查询商品的接口

请求参数

参数名
类型
描述
必填
filters
object
参数字典
必填
name
string
商品名
可选
category_1
string
一级分类id
可选
category_2
string
二级分类id
可选
category_3
string
三级分类id
可选
sold_min
int
销量最小值
可选
sold_max
int
销量最大值
可选
price_min
int
价格最小值
可选
price_max
int
价格最大值
可选
spu_id
int
商品编号
可选
spu_no
string
商品货号
可选

响应参数

参数名
类型
描述
必填
ret
number
示例:0
必填
msg
object
数据字典
必填
count
number
示例:0
必填
max_pages
number
示例:1
必填
data
array
数据列表
必填
_id
string
示例:5dc38bf582b92bd7d46db6bc
必填
spu_id
number
示例:18798
必填
brand
string
示例:3M
必填
name
string
示例:测试商家商品
必填
item_price
number
示例:1464
必填
item_pcs
string
示例:袋
必填
spu_no
string
示例:XH003822927-10
必填
product_attr
string
示例:1701CN KN90
必填
weight
string
示例:0.0220kg
必填
goods_date
string
示例:当日发货
必填
pre_no
number
示例:19
必填
pre_name
string
示例:呼吸防护
必填
sale_price
number
示例:976
必填
category_1
string
示例:1
必填
category_2
string
示例:6224
必填
create_time
number
示例:1572497597
必填
real_sold
number
示例:0
必填
set_sold
number
示例:261
必填
tem_img
array
数据列表
必填
store_id
number
示例:101
必填
store_name
string
示例:易工品自营店
必填
spu_img
array
数据列表
必填
img_url
string
示例:https://qn.ygp.sany.com.cn/622411/19_0.jpg
必填
img_type
number
示例:1
必填
img_position
number
示例:99
必填
removed
boolean
示例:false
必填
available
boolean
示例:true
必填
category_3
string
示例:622411
必填
removed
boolean
示例:false
必填
single_price
number
示例:1171
必填

说明 / 示例

请求格式 ```json filters={"store_id":101, "name":"商家商品"} ``` 返回格式: ```json { "ret": 0, "msg": { "count": 0, "max_pages": 1 }, "data": [ { "_id": "5dc38bf582b92bd7d46db6bc", "spu_id": 18798, "brand": "3M", "name": "测试商家商品", "item_price": 1464, "item_pcs": "袋", "spu_no": "XH003822927-10", "product_attr": "1701CN KN90", "weight": "0.0220kg", "goods_date": "当日发货", "pre_no": 19, "pre_name": "呼吸防护", "sale_price": 976, "category_1": "1", "category_2": "6224", "create_time": 1572497597, "real_sold": 0, "set_sold": 261, "tem_img": [], "store_id": 101, "store_name": "易工品自营店", "spu_img": [ { "img_url": "https://qn.ygp.sany.com.cn/622411/19_0.jpg", "img_type": 1, "img_position": 99, "removed": false }, { "img_url": "https://qn.ygp.sany.com.cn/622411/19_1.jpg", "img_type": 1, "img_position": 99, "removed": false }, { "img_url": "https://qn.ygp.sany.com.cn/622411/19_2.jpg", "img_type": 1, "img_position": 99, "removed": false }, { "img_url": "https://qn.ygp.sany.com.cn/622411/19_3.jpg", "img_type": 1, "img_position": 99, "removed": false }, { "img_url": "https://qn.ygp.sany.com.cn/622411_detail/19_0.jpg", "img_type": 2, "img_position": 99, "removed": false }, { "img_url": "https://qn.ygp.sany.com.cn/622411_detail/19_1.jpg", "img_type": 2, "img_position": 99, "removed": false }, { "img_url": "https://qn.ygp.sany.com.cn/622411_detail/19_2.jpg", "img_type": 2, "img_position": 99, "removed": false }, { "img_url": "https://qn.ygp.sany.com.cn/622411_detail/19_3.jpg", "img_type": 2, "img_position": 99, "removed": false }, { "img_url": "https://qn.ygp.sany.com.cn/622411_detail/19_4.jpg", "img_type": 2, "img_position": 99, "removed": false } ], "available": true, "category_3": "622411", "removed": false, "single_price": 1171 } ] } ```