商品列表

GET /product/getProductList


请求:

字段

名称

类型

是否必须

page

页码

int

pageSize

每页数量

int

filter

商品状态(0全部1上架2下架3售罄)

int

title

商品名称

string

category1_id

中台一级分类id

int

category2_id

中台二级分类id

int

category3_id

中台三级分类id

int

maxPrice

最高价格

int

minPrice

最低价格

int

supplier_id

供应商id

int

gather_supply_id

供应链id

int

返回:

字段

名称

类型

id

商品id

int

created_at

创建时间

int

updated_at

修改时间

int

title

商品名称

string

origin_price

建议零售价

int

guide_price

指导价

int

price

供货价

int

cost_price

成本价

int

activity_price

营销加

int

stock

库存

int

sales

销售数量

int

sn

商品编号

string

is_display

商品状态(0下架 1上架)

int

desc

商品描述

string

image_url

商品主图

string

unit

商品单位

string

{

“code”: 0,

“data”: {

“list”: [

{

“id”: 1030496,

“created_at”: 1644309371,

“updated_at”: 1644309371,

“title”: “招商分红测试”,

“origin_price”: 18800,

“guide_price”: 18800,

“price”: 18800,

“cost_price”: 18800,

“activity_price”: 0,

“stock”: 1093,

“sales”: 1,

“feedback_rate”: 0,

“sn”: “”,

“is_new”: 0,

“is_recommend”: 0,

“is_hot”: 0,

“is_promotion”: 0,

“is_display”: 1,

“single_option”: 1,

“desc”: “”,

“image_url”: “https://test-1251768088.cosgz.myqcloud.com/images/3/2018/02/XCo19OYQfCCSFZ3afgGQ7bahhqUsqH.png”,

“video_url”: “”,

“unit”: “件”,

“barcode”: “”,

“long”: 0,

“wide”: 0,

“high”: 0,

“volume”: 0,

“freight”: 0,

“freight_type”: 0,

“maxPrice”: 18800,

“minPrice”: 18800,

“gallery”: [

{

“type”: 1,

“src”: “https://test-1251768088.cosgz.myqcloud.com/images/3/2018/02/XCo19OYQfCCSFZ3afgGQ7bahhqUsqH.png”

},

{

“type”: 1,

“src”: “https://test-1251768088.cosgz.myqcloud.com/images/3/2018/02/XCo19OYQfCCSFZ3afgGQ7bahhqUsqH.png”

}

],

“qualifications”: null,

“detail_images”: “”,

“attrs”: null,

“supplier”: {

“id”: 35,

“name”: “release”

},

“gather_supply”: {

“id”: 0,

“name”: “”

},

“brand_id”: 0,

“supplier_id”: 35,

“gather_supply_id”: 0,

“category1_id”: 69484,

“category2_id”: 69485,

“category3_id”: 69486,

“freight_template_id”: 0,

“source”: 0,

“source_goods_id”: 0,

“freeze”: 0,

“shop_level”: 0,

“des_level”: 0,

“express_level”: 0,

“level”: 0,

“child_title”: “”

},

{

“id”: 1030495,

“created_at”: 1644309371,

“updated_at”: 1644309371,

“title”: “发布商品测试”,

“origin_price”: 100,

“guide_price”: 100,

“price”: 100,

“cost_price”: 100,

“activity_price”: 0,

“stock”: 975,

“sales”: 1,

“feedback_rate”: 0,

“sn”: “”,

“is_new”: 0,

“is_recommend”: 0,

“is_hot”: 0,

“is_promotion”: 0,

“is_display”: 1,

“single_option”: 1,

“desc”: “”,

“image_url”: “https://test-1251768088.cosgz.myqcloud.com/images/3/2018/02/L6dCEjcee2lpE4hxelllZ6u2LZPHES.jpg”,

“video_url”: “”,

“unit”: “件”,

“barcode”: “”,

“long”: 0,

“wide”: 0,

“high”: 0,

“volume”: 0,

“freight”: 0,

“freight_type”: 0,

“maxPrice”: 100,

“minPrice”: 100,

“gallery”: [

{

“type”: 1,

“src”: “https://test-1251768088.cosgz.myqcloud.com/images/3/2018/02/L6dCEjcee2lpE4hxelllZ6u2LZPHES.jpg”

}

],

“qualifications”: null,

“detail_images”: “”,

“attrs”: null,

“supplier”: {

“id”: 35,

“name”: “release”

},

“gather_supply”: {

“id”: 0,

“name”: “”

},

“brand_id”: 0,

“supplier_id”: 35,

“gather_supply_id”: 0,

“category1_id”: 69484,

“category2_id”: 69485,

“category3_id”: 69486,

“freight_template_id”: 0,

“source”: 0,

“source_goods_id”: 0,

“freeze”: 0,

“shop_level”: 0,

“des_level”: 0,

“express_level”: 0,

“level”: 0,

“child_title”: “”

}

],

“total”: 2058,

“page”: 1,

“pageSize”: 2,

“next_url”: “”

},

“msg”: “获取成功”

}

 

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部