package com.moon.server.mapper.all;
|
|
import com.moon.server.entity.all.MenusAuthEntity;
|
import com.moon.server.entity.all.PermsAuthEntity;
|
import com.moon.server.entity.all.ResAuthEntity;
|
import com.moon.server.entity.sys.MenuEntity;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
|
/**
|
* 授权管理
|
* @author WWW
|
*/
|
@Mapper
|
@Repository
|
public interface PermsMapper {
|
/**
|
* 根据用户Uid查询资源授权
|
*
|
* @param uid
|
* @return
|
*/
|
public List<ResAuthEntity> selectRes(String uid);
|
|
/**
|
* 根据用户Uid查询菜单授权
|
*
|
* @param uid
|
* @return
|
*/
|
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);
|
}
|