package tech.easyflow.system.service;

import tech.easyflow.system.entity.SysDept;
import com.mybatisflex.core.service.IService;

import java.math.BigInteger;
import java.util.Set;

/**
 * 部门表 服务层。
 *
 * @author ArkLight
 * @since 2025-03-14
 */
public interface SysDeptService extends IService<SysDept> {

    Set<BigInteger> getSelfAndAncestorDeptIds(BigInteger currentDeptId);

    boolean canUserAccessDeptScopedResource(BigInteger currentDeptId, BigInteger resourceDeptId);
}
