package com.datamate.datamanagement.infrastructure.persistence.repository;

import com.baomidou.mybatisplus.extension.repository.IRepository;
import com.datamate.datamanagement.domain.model.knowledge.KnowledgeItemDirectory;
import com.datamate.datamanagement.interfaces.dto.KnowledgeDirectoryQuery;

import java.util.List;

/**
 * 知识条目目录仓储接口
 */
public interface KnowledgeItemDirectoryRepository extends IRepository<KnowledgeItemDirectory> {
    List<KnowledgeItemDirectory> findByCriteria(KnowledgeDirectoryQuery query);

    KnowledgeItemDirectory findBySetIdAndPath(String setId, String relativePath);

    int removeByRelativePathPrefix(String setId, String relativePath);
}
