package com.erp.ai.mapper;

import com.erp.ai.model.AiKnowledgeFile;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AiKnowledgeFileMapper {
    List<AiKnowledgeFile> list(Map<String, Object> filters);

    AiKnowledgeFile getById(@Param("id") long id);

    int insert(AiKnowledgeFile file);

    int update(AiKnowledgeFile file);

    int delete(@Param("id") long id);
}
