新增临时角色页面
This commit is contained in:
@@ -59,4 +59,10 @@ public interface SysRoleMapper extends BaseMapperPlus<SysRoleMapper, SysRole, Sy
|
||||
*/
|
||||
List<SysRole> selectRolesByUserName(String userName);
|
||||
|
||||
/**
|
||||
* 获取当前用户角色对象
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
SysRole getCurrentRole(Long userId);
|
||||
}
|
||||
|
||||
@@ -178,4 +178,14 @@ public interface ISysRoleService {
|
||||
int insertAuthUsers(Long roleId, Long[] userIds);
|
||||
|
||||
void cleanOnlineUserByRole(Long roleId);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Long[] selectRoleByName();
|
||||
|
||||
|
||||
SysRole getCurrentRole();
|
||||
|
||||
}
|
||||
|
||||
@@ -440,4 +440,15 @@ public class SysRoleServiceImpl implements ISysRoleService {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Long[] selectRoleByName() {
|
||||
return new Long[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public SysRole getCurrentRole() {
|
||||
|
||||
return baseMapper.getCurrentRole(LoginHelper.getUserId());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user