文档
测试

获取一个分类和下面的子分类的所有产品

GET
http://localhost:8080/api/product/category/all/{categoryId}

请求参数

参数名
类型
描述
必填
categoryId
分类id
必填

说明 / 示例

传入:1, 返回结果: ~~~ { "msg": "success", "code": 0, "data": [ { "productId": 1, "name": "xiaomi2", "image": "https://gulimall-ads.oss-cn-shanghai.aliyuncs.com/2023-07-08/1688782147040_haibao1.png", "description": "无", "brandId": 1, "catelogId": 16, "minPrice": 3123.00 }, { "productId": 2, "name": "小米手机", "image": "https://gulimall-ads.oss-cn-shanghai.aliyuncs.com/2023-07-08/1688782059022_haibao1.png", "description": "小米手机", "brandId": 1, "catelogId": 16, "minPrice": 6999.00 }, { "productId": 3, "name": "xiaomi2", "image": "https://gulimall-ads.oss-cn-shanghai.aliyuncs.com/2023-07-08/1688782147040_haibao1.png", "description": "无", "brandId": 1, "catelogId": 3, "minPrice": 3123.00 }, { "productId": 4, "name": "adsa", "image": "https://gulimall-ads.oss-cn-shanghai.aliyuncs.com/2023-07-08/1688782147040_haibao1.png", "description": "无", "brandId": 1, "catelogId": 3, "minPrice": 3123.00 } ] } ~~~