Browse Source

ResourceTree 添加字段

reghao 3 tháng trước cách đây
mục cha
commit
d43b08a231

+ 2 - 2
web/src/main/java/cn/reghao/bnt/web/admin/controller/HomeController.java

@@ -24,8 +24,8 @@ public class HomeController {
         this.homeViewService = homeViewService;
     }
 
-    @Operation(summary = "后台首页", description = "N")
-    @GetMapping(value = "/bg")
+    //@Operation(summary = "后台首页", description = "N")
+    //@GetMapping(value = "/bg")
     public String index(Model model) {
         return homeViewService.getHomeView(model);
     }

+ 6 - 0
web/src/main/java/cn/reghao/bnt/web/admin/model/vo/ResourceTree.java

@@ -21,6 +21,9 @@ public class ResourceTree {
     private List<ResourceTree> children;
     private String label;
     private int value;
+    private String url;
+    private String type;
+    private String icon;
 
     public ResourceTree(Menu menu) {
         this.pid = menu.getPid();
@@ -30,5 +33,8 @@ public class ResourceTree {
         this.children = new ArrayList<>();
         this.value = menu.getId();
         this.label = menu.getName();
+        this.url = menu.getUrl();
+        this.type = menu.getType();
+        this.icon = menu.getIcon();
     }
 }