|
@@ -6,10 +6,7 @@ import com.project.zcustom.domain.system.LoginBody;
|
|
import com.project.zcustom.service.system.ISysUserService;
|
|
import com.project.zcustom.service.system.ISysUserService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @Description
|
|
* @Description
|
|
@@ -35,4 +32,13 @@ public class LoginController {
|
|
StpUtil.logout();
|
|
StpUtil.logout();
|
|
return AjaxResult.success("操作成功");
|
|
return AjaxResult.success("操作成功");
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @GetMapping("/getInfo")
|
|
|
|
+ public AjaxResult getInfo(){
|
|
|
|
+ AjaxResult ajax = AjaxResult.success();
|
|
|
|
+ ajax.put("user", StpUtil.getLoginId());
|
|
|
|
+ ajax.put("roles", "");
|
|
|
|
+ ajax.put("permissions", "");
|
|
|
|
+ return ajax;
|
|
|
|
+ }
|
|
}
|
|
}
|