package com.lxzn.ucenter.dao;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.lxzn.framework.domain.ucenter.Role;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
public interface RoleMapper extends BaseMapper<Role> {
|
/**
|
* 获取用户未选择的角色列表
|
* @param userId
|
* @return
|
*/
|
List<Role> getUserNonPermRole(@Param("userId") String userId);
|
/**
|
* 获取用户已选择的角色列表
|
* @param userId
|
* @return
|
*/
|
List<Role> getUserPermRole(@Param("userId") String userId);
|
}
|