package cn.com.tenlion.configcontent.dao.contentantistop;

import cn.com.tenlion.configcontent.pojo.dtos.contentantistop.ContentAntistopDTO;
import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;

/**
 * @ClassName: IContentAntistopDao
 * @Description: 内容评论敏感词库
 * @Author: WenG
 * @Date: 2020-05-08 23:30
 * @Version: 1.0
 **/
@Repository
public interface IContentAntistopDao {

    /**
     * 新增内容评论敏感词库
     *
     * @param params
     * @throws SaveException
     */
    void saveContentAntistop(Map<String, Object> params) throws SaveException;

    /**
     * 删除内容评论敏感词库
     *
     * @param params
     * @throws RemoveException
     */
    void removeContentAntistop(Map<String, Object> params) throws RemoveException;

    /**
     * 修改内容评论敏感词库
     *
     * @param params
     * @throws UpdateException
     */
    void updateContentAntistop(Map<String, Object> params) throws UpdateException;

    /**
     * 内容评论敏感词库详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ContentAntistopDTO getContentAntistop(Map<String, Object> params) throws SearchException;

    /**
     * 内容评论敏感词库列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ContentAntistopDTO> listContentAntistop(Map<String, Object> params) throws SearchException;

    ContentAntistopDTO getContentAntistopByName(Map<String, Object> params) throws SearchException;
}
