package com.cm.common.plugin.dao.systemlogger;

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.plugin.pojo.dtos.systemlogger.SystemLoggerDTO;
import org.springframework.stereotype.Repository;

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

/**
 * @ClassName: ISystemLoggerDao
 * @Description: 系统日志
 * @Author: admin
 * @Date: 2019-05-28 17:42:45
 * @Version: 1.0
 **/
@Repository
public interface ISystemLoggerDao {

    /**
     * 新增系统日志
     *
     * @param params
     * @throws SaveException
     */
    void saveSystemLogger(Map<String, Object> params) throws SaveException;

    /**
     * 删除系统日志
     *
     * @param params
     * @throws RemoveException
     */
    void removeSystemLogger(Map<String, Object> params) throws RemoveException;

    /**
     * 修改系统日志
     *
     * @param params
     * @throws UpdateException
     */
    void updateSystemLogger(Map<String, Object> params) throws UpdateException;

    /**
     * 系统日志列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<SystemLoggerDTO> listSystemLogger(Map<String, Object> params) throws SearchException;

    /**
     * 系统日志详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    SystemLoggerDTO getSystemLogger(Map<String, Object> params) throws SearchException;

    /**
     * 统计日志数量
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer countSystemLogger(Map<String, Object> params) throws SearchException;
}
