package com.bcxin.tenant.domain.repositories;

import com.bcxin.Infrastructures.EntityRepository;
import com.bcxin.tenant.domain.entities.OrgRelationEntity;
import com.bcxin.tenant.domain.repositories.dtos.OrgRelationDto;

import java.util.Collection;

/**
 * @author linqinglin
 * @date 2021/12/10 0010 14:50
 */
public interface OrgRelationRepository extends EntityRepository<OrgRelationEntity, String> {

    Collection<OrgRelationDto> getParentList(String organizationId);

    Collection<OrgRelationDto> getChildrenList(String organizationId);

    OrgRelationEntity findByOrgId(String organizationId,String parentOrgId);
}
