|
|
@@ -1,5 +1,6 @@
|
|
|
package org.dromara.product.controller.mini;
|
|
|
|
|
|
+import cn.hutool.core.lang.tree.Tree;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
@@ -46,11 +47,11 @@ public class MiniProductController {
|
|
|
private final IProductCategoryService productCategoryService;
|
|
|
|
|
|
/**
|
|
|
- * 查看分类列表
|
|
|
+ * 查询产品分类树
|
|
|
* */
|
|
|
- @GetMapping("getProductCategoryList")
|
|
|
- public R<List<ProductCategoryVo>> getProductCategoryList(ProductCategoryBo bo) {
|
|
|
- return R.ok(productCategoryService.queryList(bo));
|
|
|
+ @GetMapping("getProductCategoryTree")
|
|
|
+ public R<List<Tree<Long>>> getProductCategoryTree(ProductCategoryBo bo) {
|
|
|
+ return R.ok(productCategoryService.selectCategoryTreeList(bo));
|
|
|
}
|
|
|
|
|
|
/**
|