feat(商城): 添加商城分类接口

master
wayn 4 years ago
parent 3d8c558d1e
commit 19af098881

@ -38,4 +38,14 @@ public class CategoryController {
success.add("subCategoryList", subCategoryList);
return success;
}
@GetMapping("content")
public R content(Long id) {
R success = R.success();
Category currentCategory = iCategoryService.getById(id);
List<VanTreeSelectVo> subCategoryList = iCategoryService.selectCategoryByPid(id);
success.add("currentCategory", currentCategory);
success.add("subCategoryList", subCategoryList);
return success;
}
}

Loading…
Cancel
Save