| 
														
															@@ -9,10 +9,7 @@ import com.jjt.common.utils.SecurityUtils; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.jjt.framework.web.service.SysLoginService; 
														 | 
														
														 | 
														
															 import com.jjt.framework.web.service.SysLoginService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.jjt.framework.web.service.SysPermissionService; 
														 | 
														
														 | 
														
															 import com.jjt.framework.web.service.SysPermissionService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import com.jjt.system.service.ISysMenuService; 
														 | 
														
														 | 
														
															 import com.jjt.system.service.ISysMenuService; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import org.springframework.web.bind.annotation.GetMapping; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import org.springframework.web.bind.annotation.PostMapping; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import org.springframework.web.bind.annotation.RequestBody; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-import org.springframework.web.bind.annotation.RestController; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+import org.springframework.web.bind.annotation.*; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import javax.annotation.Resource; 
														 | 
														
														 | 
														
															 import javax.annotation.Resource; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 import java.util.List; 
														 | 
														
														 | 
														
															 import java.util.List; 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -55,7 +52,7 @@ public class SysLoginController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      * 
														 | 
														
														 | 
														
															      * 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      * @return 结果 
														 | 
														
														 | 
														
															      * @return 结果 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      */ 
														 | 
														
														 | 
														
															      */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    @PostMapping("/loginSso") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @PostMapping("/api/loginSso") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public AjaxResult loginSso() { 
														 | 
														
														 | 
														
															     public AjaxResult loginSso() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         LoginBody loginBody = new LoginBody(); 
														 | 
														
														 | 
														
															         LoginBody loginBody = new LoginBody(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         loginBody.setUsername("admin"); 
														 | 
														
														 | 
														
															         loginBody.setUsername("admin"); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -73,7 +70,7 @@ public class SysLoginController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      * 
														 | 
														
														 | 
														
															      * 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      * @return 用户信息 
														 | 
														
														 | 
														
															      * @return 用户信息 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      */ 
														 | 
														
														 | 
														
															      */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    @GetMapping("getInfo") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @PostMapping("/api/userInfo") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public AjaxResult getInfo() { 
														 | 
														
														 | 
														
															     public AjaxResult getInfo() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         SysUser user = SecurityUtils.getLoginUser().getUser(); 
														 | 
														
														 | 
														
															         SysUser user = SecurityUtils.getLoginUser().getUser(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         // 角色集合 
														 | 
														
														 | 
														
															         // 角色集合 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -92,7 +89,7 @@ public class SysLoginController { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      * 
														 | 
														
														 | 
														
															      * 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      * @return 路由信息 
														 | 
														
														 | 
														
															      * @return 路由信息 
														 | 
													
												
											
												
													
														| 
														 | 
														
															      */ 
														 | 
														
														 | 
														
															      */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    @GetMapping("getRouters") 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    @PostMapping("/api/userRouters") 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     public AjaxResult getRouters() { 
														 | 
														
														 | 
														
															     public AjaxResult getRouters() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         Long userId = SecurityUtils.getUserId(); 
														 | 
														
														 | 
														
															         Long userId = SecurityUtils.getUserId(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId); 
														 | 
														
														 | 
														
															         List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId); 
														 |