| | |
| | | import com.example.client.Main; |
| | | import com.example.server.menu.model.Menu; |
| | | import com.example.server.menu.service.SysMenuService; |
| | | import com.example.server.utils.CacheUtils; |
| | | import com.example.server.utils.UserAndSiteUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | node.setMenuName("默认根节点"); |
| | | DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(node); |
| | | |
| | | String site = (String) CacheUtils.get("site", "site"); |
| | | String site = (String) UserAndSiteUtils.get("site", "site"); |
| | | List<Menu> list = menuService.getList(site); |
| | | |
| | | createSubNode(rootNode, list); |