package cn.com.tenlion.systembase.dao.massprevention;

import cn.com.tenlion.systembase.pojo.bos.massprevention.MassPreventionBO;
import cn.com.tenlion.systembase.pojo.dtos.massprevention.MassPreventionDTO;
import cn.com.tenlion.systembase.pojo.pos.massprevention.MassPreventionPO;
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: IMassPreventionDao
 * @Description: 群防群治组织
 * @Author: CodeFactory
 * @Date: 2021-10-12 10:09:38
 * @Version: 3.0
 **/
@Repository
public interface IMassPreventionDao {

    /**
     * 新增群防群治组织
     *
     * @param params
     * @throws SaveException
     */
    void save(Map<String, Object> params) throws SaveException;

    /**
     * 删除群防群治组织
     *
     * @param params
     * @throws RemoveException
     */
    void remove(Map<String, Object> params) throws RemoveException;

    /**
     * 删除群防群治组织（物理）
     *
     * @param params
     * @throws RemoveException
     */
    void delete(Map<String, Object> params) throws RemoveException;

    /**
     * 修改群防群治组织
     *
     * @param params
     * @throws UpdateException
     */
    void update(Map<String, Object> params) throws UpdateException;

    /**
     * 群防群治组织详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MassPreventionDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 群防群治组织详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MassPreventionBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 群防群治组织详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    MassPreventionPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 群防群治组织列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MassPreventionDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 群防群治组织列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MassPreventionBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 群防群治组织列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<MassPreventionPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 群防群治组织统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}