前台跳转登录后台管理系统权限

This commit is contained in:
dinggang 2022-04-22 18:20:24 +08:00
parent 93ffea6021
commit b123adda7a
1 changed files with 2 additions and 1 deletions

View File

@ -90,6 +90,7 @@ public class SysUserController {
@ApiOperation("登录用户信息")
public Result<SysUserDTO> info(){
SysUserDTO data = ConvertUtils.sourceToTarget(SecurityUser.getUser(), SysUserDTO.class);
data.setRoleIdList(sysRoleUserService.getRoleIdList(data.getId()));
return new Result<SysUserDTO>().ok(data);
}
@ -144,7 +145,7 @@ public class SysUserController {
// @RequiresPermissions("sys:user:delete")
public Result delete(@RequestBody Long[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
//AssertUtils.isArrayEmpty(ids, "ids");
sysUserService.deleteBatchIds(Arrays.asList(ids));