package com.zsc.edu.gateway.modules.system.repo;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zsc.edu.gateway.modules.system.entity.Authority;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * @author zhuang
 */
public interface AuthorityRepository extends BaseMapper<Authority> {

    Set<Authority> selectAuthoritiesByRoleId (@Param("roleId") Long roleId);

    Long getAuthorityIdByName(@Param("authName")String authName);
}

