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

import cn.com.tenlion.configcontent.pojo.bos.contentcomment.ContentCommentBO;
import cn.com.tenlion.configcontent.pojo.dtos.contentcomment.ContentCommentDTO;
import cn.com.tenlion.configcontent.pojo.pos.contentcomment.ContentCommentPO;
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: IContentCommentDao
 * @Description: CBC内容管理评论记录表
 * @Author: CodeFactory
 * @Date: 2021-08-02 09:31:18
 * @Version: 3.0
 **/
@Repository
public interface IContentCommentDao {

    /**
     * 新增CBC内容管理评论记录表
     *
     * @param params
     * @throws SaveException
     */
    void save(Map<String, Object> params) throws SaveException;

    /**
     * 删除CBC内容管理评论记录表
     *
     * @param params
     * @throws RemoveException
     */
    void remove(Map<String, Object> params) throws RemoveException;

    /**
     * 删除CBC内容管理评论记录表（物理）
     *
     * @param params
     * @throws RemoveException
     */
    void delete(Map<String, Object> params) throws RemoveException;

    /**
     * 修改CBC内容管理评论记录表
     *
     * @param params
     * @throws UpdateException
     */
    void update(Map<String, Object> params) throws UpdateException;

    /**
     * CBC内容管理评论记录表详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ContentCommentDTO get(Map<String, Object> params) throws SearchException;

    /**
     * CBC内容管理评论记录表详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ContentCommentBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * CBC内容管理评论记录表详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ContentCommentPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * CBC内容管理评论记录表列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ContentCommentDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * CBC内容管理评论记录表列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ContentCommentBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * CBC内容管理评论记录表列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ContentCommentPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * CBC内容管理评论记录表统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

    List<ContentCommentDTO> getCommentByBusinessIdAndCommentContent(Map<String, Object> params);

    void updateLike(Map<String, Object> params);
}