package cn.edu.whu.boot.user.mapper;

import cn.edu.whu.boot.user.entities.RoleToPermission;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleToPermissionMapper {
    @Select("SELECT * FROM user_role_permission WHERE role = #{role}")
    List<RoleToPermission> findByRole(int role);
}

