package com.erp.ai.mapper;

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

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

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

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

    AiAgent getByAgentId(@Param("agentId") String agentId);

    int insert(AiAgent agent);

    int update(@Param("id") long id, @Param("fields") Map<String, Object> fields);

    int softDelete(@Param("id") long id);

    int countActive();

    List<AiAgent> getActiveAgents();
}
