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

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.repository.IRepository;
import com.datamate.datamanagement.domain.model.knowledge.KnowledgeItem;
import com.datamate.datamanagement.interfaces.dto.KnowledgeItemPagingQuery;
import java.util.List;

/**
 * 知识条目仓储接口
 */
public interface KnowledgeItemRepository extends IRepository<KnowledgeItem> {
    IPage<KnowledgeItem> findByCriteria(IPage<KnowledgeItem> page, KnowledgeItemPagingQuery query);

    long countBySetId(String setId);

    List<KnowledgeItem> findAllBySetId(String setId);
}
