| | |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 授权管理 |
| | | * @author WWW |
| | | */ |
| | | @Mapper |
| | | @Repository |
| | | @SuppressWarnings("ALL") |
| | | public interface PermsMapper { |
| | | /** |
| | | * 根据用户Uid查询资源授权 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public List<ResEntity> selectRes(String uid); |
| | | |
| | | /** |
| | | * 查询所有资源 |
| | | * |
| | | * @return |
| | | */ |
| | | public List<ResEntity> selectAllRes(); |
| | | |
| | | /** |
| | | * 根据用户Uid查询菜单授权 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public List<String> selectTabs(String uid); |
| | | |
| | | public List<String> selectAllTabs(); |
| | | |
| | | public List<MenusAuthEntity> selectMenus(String uid); |
| | | |
| | | /** |
| | | * 根据用户Uid查询权限授权 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public List<String> selectPerms(String uid); |
| | | |
| | | /** |
| | | * 根据用户Uid查询权限授权实体集合 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public List<PermsAuthEntity> selectPermsEntity(String uid); |
| | | |
| | | /** |
| | | * 根据用户Uid查询角色ID |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public List<Integer> selectRoles(String uid); |
| | | |
| | | /** |
| | | * 根据用户Uid递归查询菜单集合 |
| | | * |
| | | * @param id |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public List<MenuEntity> selectMenuRecursive(int id, String uid); |
| | | } |