package com.ruoyi.frequency.sensitiveword.service;

import java.util.List;
import com.ruoyi.frequency.sensitiveword.entity.SensitiveWord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 敏感词Service接口
 * 
 * @author liwenlong
 * @date 2024-05-07
 */
public interface SensitiveWordService extends IService<SensitiveWord>
{
    /**
     * 查询敏感词
     * 
     * @param id 敏感词主键
     * @return 敏感词
     */
    public SensitiveWord selectSensitiveWordById(Long id);

    /**
     * 查询敏感词列表
     * 
     * @param sensitiveWord 敏感词
     * @return 敏感词集合
     */
    public List<SensitiveWord> selectSensitiveWordList(SensitiveWord sensitiveWord);

    /**
     * 新增敏感词
     * 
     * @param sensitiveWord 敏感词
     * @return 结果
     */
    public int insertSensitiveWord(SensitiveWord sensitiveWord);

    /**
     * 修改敏感词
     * 
     * @param sensitiveWord 敏感词
     * @return 结果
     */
    public int updateSensitiveWord(SensitiveWord sensitiveWord);

    /**
     * 批量删除敏感词
     * 
     * @param ids 需要删除的敏感词主键集合
     * @return 结果
     */
    public int deleteSensitiveWordByIds(Long[] ids,Integer delFlag);

}
