package cn.com.tenlion.projectconfig.dao.projectconfig;

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import cn.com.tenlion.projectconfig.pojo.bos.projectconfig.ProjectConfigBO;
import cn.com.tenlion.projectconfig.pojo.pos.projectconfig.ProjectConfigPO;
import cn.com.tenlion.projectconfig.pojo.dtos.projectconfig.ProjectConfigDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IProjectConfigDao
 * @Description: CBC项目配置管理表
 * @Author: CodeFactory
 * @Date: 2021-08-12 13:54:56
 * @Version: 3.0
 **/
@Repository
public interface IProjectConfigDao {

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

    /**
     * CBC项目配置管理表详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ProjectConfigBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * CBC项目配置管理表详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ProjectConfigPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * CBC项目配置管理表列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ProjectConfigDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * CBC项目配置管理表列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ProjectConfigBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * CBC项目配置管理表列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ProjectConfigPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * CBC项目配置管理表统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

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