|
|
@@ -23,8 +23,8 @@ public class SpuCategoryController {
|
|
|
@PostMapping("/label/query")
|
|
|
@ApiOperation(value = "子分类查询接口",notes = "根据分类id查询子分类")
|
|
|
public Result<List> query(@RequestBody SpuCategory category){
|
|
|
- categoryService.querySubSpuCategory(category.getId());
|
|
|
- return Result.success();
|
|
|
+ List<SpuCategoryDTO> spuCategoryDTOS = categoryService.querySubSpuCategory(category.getParentId());
|
|
|
+ return Result.success(spuCategoryDTOS);
|
|
|
}
|
|
|
@GetMapping("/list")
|
|
|
@ApiOperation(value = "商品分类查询",notes = "查询商品的分类")
|