+
+
+
+
+
+
+ 批量删除
+ 批量保存
+
+
+
+
+
+ {{ node.label }}
+
+ append(data)"
+ >添加
+
+ 修改
+
+ remove(node, data)"
+ >删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/xjs-business/xjs-project-mall/mall-product/src/main/java/com/xjs/mall/product/controller/CategoryController.java b/xjs-business/xjs-project-mall/mall-product/src/main/java/com/xjs/mall/product/controller/CategoryController.java
index 983a63da..65d86c0a 100644
--- a/xjs-business/xjs-project-mall/mall-product/src/main/java/com/xjs/mall/product/controller/CategoryController.java
+++ b/xjs-business/xjs-project-mall/mall-product/src/main/java/com/xjs/mall/product/controller/CategoryController.java
@@ -1,20 +1,17 @@
package com.xjs.mall.product.controller;
-import java.util.Arrays;
-import java.util.Map;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.PathVariable;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestParam;
-import org.springframework.web.bind.annotation.RestController;
-
+import com.ruoyi.common.log.annotation.Log;
+import com.ruoyi.common.log.enums.BusinessType;
import com.xjs.mall.product.entity.CategoryEntity;
import com.xjs.mall.product.service.CategoryService;
-import com.xjs.utils.PageUtils;
import com.xjs.utils.R;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import java.util.Arrays;
+import java.util.List;
/**
@@ -22,41 +19,47 @@ import com.xjs.utils.R;
*
* @author xiejs
* @email 1294405880@qq.com
- * @date 2022-03-15 10:16:53
+ * @since 2022-03-15 10:16:53
*/
@RestController
@RequestMapping("product/category")
+@Api(tags = "商城-商品-分类")
public class CategoryController {
@Autowired
private CategoryService categoryService;
/**
- * 列表
+ * 列表--树形结构
*/
- @RequestMapping("/list")
- public R list(@RequestParam Map