package com.cm.central.control.dao.clientexception;

import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SaveException;
import com.cm.common.exception.SearchException;
import com.cm.common.exception.UpdateException;
import com.cm.common.result.SuccessResultList;
import com.cm.central.control.pojo.dtos.clientexception.ClientExceptionDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: IClientExceptionDao
 * @Description: 客户端异常
 * @Author: WenG
 * @Date: 2020-07-30 19:13
 * @Version: 1.0
 **/
@Repository
public interface IClientExceptionDao {

    /**
     * 新增客户端异常
     *
     * @param params
     * @throws SaveException
     */
    void saveClientException(Map<String, Object> params) throws SaveException;

    /**
     * 删除客户端异常
     *
     * @param params
     * @throws RemoveException
     */
    void removeClientException(Map<String, Object> params) throws RemoveException;

    /**
     * 删除客户端异常（物理）
     *
     * @param params
     * @throws RemoveException
     */
    void deleteClientException(Map<String, Object> params) throws RemoveException;

    /**
     * 修改客户端异常
     *
     * @param params
     * @throws UpdateException
     */
    void updateClientException(Map<String, Object> params) throws UpdateException;

    /**
     * 客户端异常详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    ClientExceptionDTO getClientException(Map<String, Object> params) throws SearchException;

    /**
     * 客户端异常列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ClientExceptionDTO> listClientException(Map<String, Object> params) throws SearchException;

    /**
     * 客户端异常统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer countClientException(Map<String, Object> params) throws SearchException;

    /**
     * 更新通知状态
     *
     * @param params
     * @throws UpdateException
     */
    void updateNoticeStatusByClientExceptionIds(Map<String, Object> params) throws UpdateException;
}