前台跳转登录后台管理系统权限
This commit is contained in:
parent
93ffea6021
commit
b123adda7a
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue