package com.fs.fastGpt.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fs.common.annotation.DataSource;
import com.fs.common.enums.DataSourceType;
import com.fs.fastGpt.domain.FastGptChatReplaceWords;
import com.fs.fastGpt.domain.FastgptChatVoiceHomo;
import org.apache.ibatis.annotations.Select;

/**
 * 违规词语Mapper接口
 *
 * @author fs
 * @date 2025-01-18
 */
public interface FastGptChatReplaceWordsMapper extends BaseMapper<FastGptChatReplaceWords>{
    /**
     * 查询违规词语
     *
     * @param id 违规词语主键
     * @return 违规词语
     */
    FastGptChatReplaceWords selectFastGptChatReplaceWordsById(Long id);

    /**
     * 查询违规词语列表
     *
     * @param fastGptChatReplaceWords 违规词语
     * @return 违规词语集合
     */
    List<FastGptChatReplaceWords> selectFastGptChatReplaceWordsList(FastGptChatReplaceWords fastGptChatReplaceWords);

    /**
     * 新增违规词语
     *
     * @param fastGptChatReplaceWords 违规词语
     * @return 结果
     */
    int insertFastGptChatReplaceWords(FastGptChatReplaceWords fastGptChatReplaceWords);

    /**
     * 修改违规词语
     *
     * @param fastGptChatReplaceWords 违规词语
     * @return 结果
     */
    int updateFastGptChatReplaceWords(FastGptChatReplaceWords fastGptChatReplaceWords);

    /**
     * 删除违规词语
     *
     * @param id 违规词语主键
     * @return 结果
     */
    int deleteFastGptChatReplaceWordsById(Long id);

    /**
     * 批量删除违规词语
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteFastGptChatReplaceWordsByIds(Long[] ids);


    @Select("select * from fastgpt_chat_replace_words where `status`=1" )
    List<FastGptChatReplaceWords> selectAllFastGptChatReplaceWords();

}
