文档
测试

获取首页的所有商品数据

POST
http://localhost:90/index/list

接口描述

只获取了部分

响应参数

参数名
类型
描述
必填
id
int
id
必填
name
string
名称
必填
image
string
图片
必填
listDesc
string
列表的小描述
必填
price
double
价格
必填
vipPrice
double
vip价格
必填
vipDiscount
double
vip的折扣
必填
vip
int
是否有vip价格
必填
goodRate
int
好评率
必填
alreadyNum
int
已售数量
必填
heat
int
热度
必填

说明 / 示例

首页分为四部分 1. 第一部分 banner图 2. 8个大类图标 3. 中间的几个图片展示。前端直接写死 4. 具体的大类数据展示 这个接口分为三部分 第4部分为: 直接循环即可 ``` text [ -- 大类1 [ {}, 实际的商品数据 {}, 实际的商品数据 ], -- 大类2 [ {}, 实际的商品数据 {}, 实际的商品数据 ] ] ``` 实际数据 ``` json { "code": 200, "message": "操作成功", "data": { "bannerList": [ { "name": "hello word", "image": "", "linkStatus": "" } ], "classifyOneList": [ // 八大类 { "id": 1, "name": "上门按摩", "image": "", "shop": 0 }, { "id": 2, "name": "上门保洁", "image": "", "shop": 0 }, { "id": 3, "name": "上门维修", "image": "", "shop": 0 }, { "id": 4, "name": "上门代妆", "image": "", "shop": 0 }, { "id": 5, "name": "上门美甲", "image": "", "shop": 0 }, { "id": 6, "name": "上门清洗", "image": "", "shop": 0 }, { "id": 7, "name": "保姆月嫂", "image": "", "shop": 0 }, { "id": 8, "name": "生活商城", "image": "", "shop": 1 } ], "indexDetail": [ // 下面的详细展示 { "classifyOneName": "上门按摩", "classifyTwoList": [ { "id": 100, "name": "全身理疗", "image": null, "listDesc": "买就完事了", "price": 250, "vipPriceShow": 238, "vipPrice": 12, "goodRate": 100, "alreadyNum": 20, "heat": 1658 }, { "id": 101, "name": "梦幻Spa", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 }, { "id": 102, "name": "港式推油", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 }, { "id": 103, "name": "泰式按摩", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 }, { "id": 104, "name": "中医推拿", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 }, { "id": 105, "name": "招牌养生香薰SPA", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 }, { "id": 106, "name": "中式推拿按摩", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 }, { "id": 107, "name": "招牌幸福套餐", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 } ] }, { "classifyOneName": "上门保洁", "classifyTwoList": [ { "id": 108, "name": "上门保洁1", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 }, { "id": 109, "name": "上门保洁2", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 }, { "id": 110, "name": "上门保洁3", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 }, { "id": 111, "name": "上门保洁4", "image": null, "listDesc": "买就完事了", "price": 256, "vipPriceShow": 243, "vipPrice": 13, "goodRate": 100, "alreadyNum": 20, "heat": 1658 } ] } ] } } ```