|
@@ -50,6 +50,7 @@ public class CurrentUserController {
|
|
|
|
|
|
|
|
@GetMapping("/getPermissionInfo")
|
|
@GetMapping("/getPermissionInfo")
|
|
|
@ApiOperation( "获取登录用户的权限信息")
|
|
@ApiOperation( "获取登录用户的权限信息")
|
|
|
|
|
+ @TenantIgnore
|
|
|
public CommonResult<Collection<String>> getPermissionInfo() {
|
|
public CommonResult<Collection<String>> getPermissionInfo() {
|
|
|
SaTokenUtils.getStpUtil().checkLogin();
|
|
SaTokenUtils.getStpUtil().checkLogin();
|
|
|
return CommonResult.success(currentUserService.currentUserPermission(String.valueOf(SaTokenUtils.getStpUtil().getLoginId())));
|
|
return CommonResult.success(currentUserService.currentUserPermission(String.valueOf(SaTokenUtils.getStpUtil().getLoginId())));
|
|
@@ -57,6 +58,7 @@ public class CurrentUserController {
|
|
|
|
|
|
|
|
@GetMapping("/listMenus-{portalId}")
|
|
@GetMapping("/listMenus-{portalId}")
|
|
|
@ApiOperation("获得登录用户的菜单列表")
|
|
@ApiOperation("获得登录用户的菜单列表")
|
|
|
|
|
+ @TenantIgnore
|
|
|
public CommonResult<List<RouteItemVO>> getMenus(@PathVariable(value = "portalId",required = false) String portalId) {
|
|
public CommonResult<List<RouteItemVO>> getMenus(@PathVariable(value = "portalId",required = false) String portalId) {
|
|
|
SaTokenUtils.getStpUtil().checkLogin();
|
|
SaTokenUtils.getStpUtil().checkLogin();
|
|
|
return CommonResult.success(TreeUtil.buildTree(currentUserService.currentUserMenus(portalId)));
|
|
return CommonResult.success(TreeUtil.buildTree(currentUserService.currentUserMenus(portalId)));
|
|
@@ -64,6 +66,7 @@ public class CurrentUserController {
|
|
|
|
|
|
|
|
@GetMapping("/listPortal")
|
|
@GetMapping("/listPortal")
|
|
|
@ApiOperation("获取登录用户的门户列表")
|
|
@ApiOperation("获取登录用户的门户列表")
|
|
|
|
|
+ @TenantIgnore
|
|
|
public CommonResult<List<SysUserPortalListDTO>> getPortals() {
|
|
public CommonResult<List<SysUserPortalListDTO>> getPortals() {
|
|
|
SaTokenUtils.getStpUtil().checkLogin();
|
|
SaTokenUtils.getStpUtil().checkLogin();
|
|
|
return CommonResult.success(currentUserService.currentUserPortals());
|
|
return CommonResult.success(currentUserService.currentUserPortals());
|
|
@@ -71,6 +74,7 @@ public class CurrentUserController {
|
|
|
|
|
|
|
|
@ApiOperation("当前用户的个人账户中心信息")
|
|
@ApiOperation("当前用户的个人账户中心信息")
|
|
|
@GetMapping("/accountInfo")
|
|
@GetMapping("/accountInfo")
|
|
|
|
|
+ @TenantIgnore
|
|
|
public CommonResult accountInfo(){
|
|
public CommonResult accountInfo(){
|
|
|
SaTokenUtils.getStpUtil().checkLogin();
|
|
SaTokenUtils.getStpUtil().checkLogin();
|
|
|
String stpType = LoginUserContextHolder.getStpType();
|
|
String stpType = LoginUserContextHolder.getStpType();
|
|
@@ -83,6 +87,7 @@ public class CurrentUserController {
|
|
|
|
|
|
|
|
@ApiOperation("更新用户的个人账户中心信息")
|
|
@ApiOperation("更新用户的个人账户中心信息")
|
|
|
@PostMapping("/updateAccountInfo")
|
|
@PostMapping("/updateAccountInfo")
|
|
|
|
|
+ @TenantIgnore
|
|
|
public CommonResult<Boolean> updateAccountInfo(@RequestBody AccountUserInfoEditDTO source){
|
|
public CommonResult<Boolean> updateAccountInfo(@RequestBody AccountUserInfoEditDTO source){
|
|
|
String stpType = LoginUserContextHolder.getStpType();
|
|
String stpType = LoginUserContextHolder.getStpType();
|
|
|
AbstractOAuth2PswUserOperator operator = pswUserOperatorManager.matchLoginType(stpType);
|
|
AbstractOAuth2PswUserOperator operator = pswUserOperatorManager.matchLoginType(stpType);
|