文档
测试

商品购机订购

POST
/home/queryAllCategories

接口描述

返回商品首页的购机订购模块的数据

请求参数

参数名
类型
描述
必填
categoryId
Long
商品分类id(可为空,为空时时显示所有列表)
必填
pageNum
Integer
当前页(可为空,后台默认为第一页)
必填
pageSize
Integer
每页显示条数(可为空,后台默认时每页显示条数为6)
必填

响应参数

参数名
类型
描述
必填
code
int
必填
msg
String
必填
data
map<long,list>
必填

说明 / 示例

``` categoryId参数为空的情况: { "code": 1000, "msg": "操作成功", "data": [ { "categoryId": 1, "categoryDesc": "个护时尚", "goodsProductHomeDtoList": [ { "goodsId": 3333, "goodsName": "大宝SOD蜜", "smallImgPath": null, "service": 0, "currentPrice": 1000 }, { "goodsId": 213215, "goodsName": "眼镜", "smallImgPath": null, "service": 0, "currentPrice": 1000 }, { "goodsId": 44564, "goodsName": "风扇", "smallImgPath": null, "service": 0, "currentPrice": 3000 }, { "goodsId": 6456456, "goodsName": "帽子", "smallImgPath": null, "service": 0, "currentPrice": 4000 }, { "goodsId": 216465, "goodsName": "抱枕", "smallImgPath": null, "service": 0, "currentPrice": 2000 }, { "goodsId": 2222, "goodsName": "洗发水", "smallImgPath": null, "service": 0, "currentPrice": 2000 } ] }, { "categoryId": 2, "categoryDesc": "餐具水具", "goodsProductHomeDtoList": [ { "goodsId": 45646, "goodsName": "牙刷", "smallImgPath": null, "service": 0, "currentPrice": 8000 }, { "goodsId": 54564, "goodsName": "拖鞋", "smallImgPath": null, "service": 0, "currentPrice": 6000 }, { "goodsId": 4444, "goodsName": "勺子", "smallImgPath": null, "service": 0, "currentPrice": 4000 }, { "goodsId": 65465465, "goodsName": "牙膏", "smallImgPath": null, "service": 0, "currentPrice": 7000 }, { "goodsId": 54654, "goodsName": "毛巾", "smallImgPath": null, "service": 0, "currentPrice": 5000 }, { "goodsId": 1111, "goodsName": "水壶", "smallImgPath": null, "service": 0, "currentPrice": 3000 } ] }, { "categoryId": 3, "categoryDesc": "数码家电", "goodsProductHomeDtoList": [ { "goodsId": 6666, "goodsName": "投影仪", "smallImgPath": null, "service": 0, "currentPrice": 6000 }, { "goodsId": 798, "goodsName": "小米手环", "smallImgPath": null, "service": 0, "currentPrice": 1000 }, { "goodsId": 231231, "goodsName": "iphone11", "smallImgPath": null, "service": 0, "currentPrice": 2000 }, { "goodsId": 32132, "goodsName": "智能机器人", "smallImgPath": null, "service": 0, "currentPrice": 4000 }, { "goodsId": 5555, "goodsName": "扫地机器人", "smallImgPath": null, "service": 0, "currentPrice": 5000 }, { "goodsId": 564564, "goodsName": "HUAWEI Mate X", "smallImgPath": null, "service": 0, "currentPrice": 3000 } ] }, { "categoryId": 5, "categoryDesc": "日用家私", "goodsProductHomeDtoList": [ { "goodsId": 41563, "goodsName": "沙发", "smallImgPath": null, "service": 0, "currentPrice": 9000 }, { "goodsId": 4564, "goodsName": "茶几", "smallImgPath": null, "service": 0, "currentPrice": 3333 }, { "goodsId": 3213, "goodsName": "折叠桌", "smallImgPath": null, "service": 0, "currentPrice": 5222 }, { "goodsId": 9999, "goodsName": "机器键盘", "smallImgPath": null, "service": 0, "currentPrice": 9000 }, { "goodsId": 101010, "goodsName": "鼠标", "smallImgPath": null, "service": 0, "currentPrice": 1010 }, { "goodsId": 9897, "goodsName": "板凳", "smallImgPath": null, "service": 0, "currentPrice": 11111 } ] } ] } ``` ``` categoryId=1时 { "code": 1000, "msg": "操作成功", "data": [ { "categoryId": 1, "categoryDesc": "个护时尚", "goodsProductHomeDtoList": [ { "goodsId": 3333, "goodsName": "大宝SOD蜜", "smallImgPath": null, "service": 0, "currentPrice": 1000 }, { "goodsId": 213215, "goodsName": "眼镜", "smallImgPath": null, "service": 0, "currentPrice": 1000 }, { "goodsId": 44564, "goodsName": "风扇", "smallImgPath": null, "service": 0, "currentPrice": 3000 }, { "goodsId": 6456456, "goodsName": "帽子", "smallImgPath": null, "service": 0, "currentPrice": 4000 }, { "goodsId": 216465, "goodsName": "抱枕", "smallImgPath": null, "service": 0, "currentPrice": 2000 }, { "goodsId": 2222, "goodsName": "洗发水", "smallImgPath": null, "service": 0, "currentPrice": 2000 } ] } ] } ``` |categoryId|categoryDesc|goodsProductHomeDtoList|goodsId|categoryId|goodsName|smallImgPath|service| |-|-|-|-|-|-|-|-| |分类id|分类描述|分类对应的数据|商品id|商品表对应的分类id(这里好像重复了,后面会删掉,请不要取这里的)|商品名称|商品小图路径|包邮情况(由于不知道具体公司包邮政策,这里先选择默认为0的状态,后续会添加多种有关包邮状态处理,前端的开发者根据判断值就行)