package vn.azteam.tpf.repository.search;

import java.util.List;

import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import vn.azteam.tpf.domain.Casbin;
import vn.azteam.tpf.service.dto.CasbinDTO;

/**
 * Spring Data Elasticsearch repository for the Casbin entity.
 */
public interface CasbinSearchRepository extends ElasticsearchRepository<Casbin, Long> {
    List<CasbinDTO> findByTbRoleId(Long roleId);
    void deleteByTbRoleId(Long id);
}
