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

import cn.com.tenlion.systembase.pojo.bos.homicidevictim.HomicideVictimBO;
import cn.com.tenlion.systembase.pojo.dtos.homicidevictim.HomicideVictimDTO;
import cn.com.tenlion.systembase.pojo.pos.homicidevictim.HomicideVictimPO;
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: IHomicideVictimDao
 * @Description: 命案受害人
 * @Author: CodeFactory
 * @Date: 2021-10-19 11:24:35
 * @Version: 3.0
 **/
@Repository
public interface IHomicideVictimDao {

    /**
     * 新增命案受害人
     *
     * @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
     */
    HomicideVictimDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 命案受害人详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    HomicideVictimBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 命案受害人详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    HomicideVictimPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 命案受害人列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<HomicideVictimDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 命案受害人列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<HomicideVictimBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 命案受害人列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<HomicideVictimPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 命案受害人统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}