34 lines
806 B
Java
34 lines
806 B
Java
package net.maku.system.dao;
|
|
|
|
import net.maku.framework.mybatis.dao.BaseDao;
|
|
import net.maku.system.entity.SysUserRoleEntity;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 用户角色关系
|
|
*
|
|
* @author 阿沐 babamu@126.com
|
|
* <a href="https://maku.net">MAKU</a>
|
|
*/
|
|
@Mapper
|
|
public interface SysUserRoleDao extends BaseDao<SysUserRoleEntity> {
|
|
|
|
/**
|
|
* 角色ID列表
|
|
* @param userId 用户ID
|
|
*
|
|
* @return 返回角色ID列表
|
|
*/
|
|
List<Long> getRoleIdList(@Param("userId") Long userId);
|
|
|
|
/**
|
|
* 根据角色ID查询对应的用户ID列表
|
|
* @param roleId 角色ID
|
|
*
|
|
* @return 返回用户ID列表
|
|
*/
|
|
List<Long> getExistsUserIdList(@Param("roleId") Long roleId);
|
|
} |