package com.ichangzuo.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ichangzuo.system.model.entity.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.Set;

@Mapper
public interface RoleMapper extends BaseMapper<Role> {


    /**
     * 获取最大范围的数据权限
     *
     * @param roles
     * @return
     */
    Integer getMaximumDataScope(Set<String> roles);
}
