package com.njzscloud.supervisory.role.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.njzscloud.supervisory.role.pojo.SysRoleEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * <p>sys_role</p>
 * <p>角色表</p>
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRoleEntity> {

    /**
     * 分页查询
     *
     * @param page 分页参数
     * @param ew   查询条件
     * @return IPage&lt;SysRoleEntity&gt; 分页结果
     */
    IPage<SysRoleEntity> paging(IPage<SysRoleEntity> page, @Param(Constants.WRAPPER) Wrapper<SysRoleEntity> ew);

    Set<String> selectRoleByUserId(Long userId);

}
