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

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import cn.com.tenlion.configcontent.pojo.bos.contentscans.ContentScansBO;
import cn.com.tenlion.configcontent.pojo.pos.contentscans.ContentScansPO;
import cn.com.tenlion.configcontent.pojo.dtos.contentscans.ContentScansDTO;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: IContentScansDao
 * @Description: CBC内容管理查看记录表
 * @Author: CodeFactory
 * @Date: 2021-08-02 10:42:41
 * @Version: 3.0
 **/
@Repository
public interface IContentScansDao {

    /**
     * 新增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
     */
    ContentScansDTO get(Map<String, Object> params) throws SearchException;

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

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

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

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

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

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

    void updateGmtCreate(Map<String, Object> params) throws UpdateException;
}