package com.erp.ai.mapper;

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

import java.util.List;

@Mapper
public interface AiLlmProviderMapper {
    List<AiLlmProvider> listAll();

    List<AiLlmProvider> listActive();

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

    AiLlmProvider getByName(@Param("name") String name);

    int insert(AiLlmProvider provider);

    int update(AiLlmProvider provider);

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