package com.itsol.quantrivanphong.access.login.repository;

import com.itsol.quantrivanphong.model.EmployeeRole;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface EmployeeRoleRepository extends JpaRepository<EmployeeRole,Integer> {
//    tìm kiếm danh sách Role theo UserId
    List<EmployeeRole> findByEmployeeId(Integer userId);
}
