| | |
| | | import java.util.Set;
|
| | | import org.springframework.beans.factory.annotation.Autowired;
|
| | | import org.springframework.stereotype.Service;
|
| | |
|
| | | import com.ruoyi.system.api.domain.SysUser;
|
| | | import com.ruoyi.system.service.ISysMenuService;
|
| | | import com.ruoyi.system.service.ISysPermissionService;
|
| | |
| | | /**
|
| | | * 获取角色数据权限
|
| | | *
|
| | | * @param user 用户信息
|
| | | * @param userId 用户Id
|
| | | * @return 角色权限信息
|
| | | */
|
| | | @Override
|
| | | public Set<String> getRolePermission(Long userId)
|
| | | {
|
| | | Set<String> roles = new HashSet<String>();
|
| | |
| | | /**
|
| | | * 获取菜单数据权限
|
| | | *
|
| | | * @param user 用户信息
|
| | | * @param userId 用户Id
|
| | | * @return 菜单权限信息
|
| | | */
|
| | | @Override
|
| | | public Set<String> getMenuPermission(Long userId)
|
| | | {
|
| | | Set<String> perms = new HashSet<String>();
|