文档
测试

商品列表

POST
get_items

请求参数

参数名
类型
描述
必填
token
str
用户登录状态token
必填
type
str
列表类型,brand品牌 或 category分类 或 search搜索 或all全部
必填
id
int
品牌ID或分类ID,type=search时不用传此字段
可选
page
int
页码(可选),默认=1
可选
has
int
=1时筛选有货
可选
order
int
0或不传时按销量递减,=1时按价格递减,=2时按价格递增,=3时按销量递增
可选
query
str
搜索关键词,type=search时候传此字段
可选

响应参数

参数名
类型
描述
必填
code
int
错误码,0正确,大于0表示有错误
必填
msg
str
错误信息,ok 或 错误信息
必填
data
obj
返回的数据
必填

说明 / 示例

## 返回示例 ```json { "code": 0, "msg": "ok", "data": { "list": [ { "id": 1, //商品ID "salesPrice": 4390, //售价 "contrastPrice": 5000, //市场价 "count": 0, //库存 "saleCount": 0, //已售 "limitNumber": 99999, //每人限购,99999不限购 "name": "兰蔻全新精华肌底液套装", //商品名称 "nameEN": "LANCOME GENIFIQUE DUO SERUM R2019 TRE TRAP", //商品英文名 "pics": [ //商品图片 "https://pic-dg.cygame.cn/202007281704/159592704566975.png", "https://pic-dg.cygame.cn/202007281704/159592704536018.jpg", "https://pic-dg.cygame.cn/202007281704/159592704552930.jpg" ], "description": "激活肌底促进吸收(第二代)" //商品介绍 }, { "id": 3, "salesPrice": 880, "contrastPrice": 1260, "count": 361, "saleCount": 0, "limitNumber": 30, "name": "兰蔻新清滢柔肤水套装", "nameEN": "Lancome Trio Tonqiue Confort", "pics": [ "https://pic-dg.cygame.cn/202007281704/159592704681808.jpg" ], "description": "温和洁肤、柔肤" }, { "id": 5, "salesPrice": 1020, "contrastPrice": 1350, "count": 0, "saleCount": 0, "limitNumber": 30, "name": "兰蔻肌底精华眼霜套装", "nameEN": "LANCOME DUO GENIFIQUE EYE CREAM", "pics": [ "https://pic-dg.cygame.cn/202007281704/159592704855107.jpg" ], "description": "加强眼周肌底活性" }, { "id": 9, "salesPrice": 220, "contrastPrice": 270, "count": 0, "saleCount": 0, "limitNumber": 30, "name": "兰蔻眼部肌底精华液套装", "nameEN": "LANCOME DUO GENIFIQUE LIGHT PEARL TRE TRAP", "pics": [ "https://pic-dg.cygame.cn/202007281704/159592705079376.jpg" ], "description": "加强眼周肌底活性" }, { "id": 12, "salesPrice": 532, "contrastPrice": 760, "count": 9, "saleCount": 0, "limitNumber": 30, "name": "兰蔻轻透水漾防晒乳套装", "nameEN": "LANCOME UVEX AQUA GEL TRIO 2019", "pics": [ "https://pic-dg.cygame.cn/202007281704/159592705341568.jpg" ], "description": "高倍防晒力,隐形遮阳伞,清凉舒适,薄如空气。" }, { "id": 13, "salesPrice": 705, "contrastPrice": 1000, "count": 38, "saleCount": 0, "limitNumber": 30, "name": "兰蔻水分缘日晚霜套装", "nameEN": "Lancome HydraZen NeoCalm Day & Night", "pics": [ "https://pic-dg.cygame.cn/202007281704/159592705455952.jpg" ], "description": "蔻水份缘系列面霜为肌肤带来全新水漾感受" }, { "id": 14, "salesPrice": 0, "contrastPrice": 0, "count": 1000, "saleCount": 0, "limitNumber": 99999, "name": "兰蔻新塑颜紧致套装", "nameEN": "LANCOME REN PO3 (LOCAL)", "pics": [ "https://pic-dg.cygame.cn/202007281704/159592705540905.jpg" ], "description": "持久塑形,使肌肤看起来更显年轻。 " }, { "id": 15, "salesPrice": 6346, "contrastPrice": 9980, "count": 7, "saleCount": 0, "limitNumber": 30, "name": "兰蔻菁纯臻颜系列 卓越赋活修护保养套组", "nameEN": "LANCOME APC UBER 2019 CN", "pics": [ "https://pic-dg.cygame.cn/202007281704/159592705947392.jpg", "https://pic-dg.cygame.cn/202007281704/159592705953819.jpg" ], "description": "抗皱紧致,滋养润颜" }, { "id": 16, "salesPrice": 945, "contrastPrice": 1335, "count": 1, "saleCount": 0, "limitNumber": 30, "name": "兰蔻保湿旅行套装", "nameEN": "Lancome HydraZen NeoCalme Gel Power of 3 Reno", "pics": [ "https://pic-dg.cygame.cn/202007281704/159592706094289.jpg" ], "description": "兰蔻水份缘系列套装,为您带来水润肌肤" }, { "id": 22, "salesPrice": 1575, "contrastPrice": 2200, "count": 30, "saleCount": 0, "limitNumber": 30, "name": "兰蔻新臻白淡斑精华乳两支装", "nameEN": "LANCOME BEX SPOT ERASER 50ML DUO TRAP", "pics": [ "https://pic-dg.cygame.cn/202007281704/159592706322722.jpg" ], "description": "淡斑、减少黑色素沉淀" } ], "total": 206 } } ```