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