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

import cn.com.tenlion.systembase.pojo.bos.schoolkey.SchoolKeyBO;
import cn.com.tenlion.systembase.pojo.dtos.schoolkey.SchoolKeyDTO;
import cn.com.tenlion.systembase.pojo.pos.schoolkey.SchoolKeyPO;
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: ISchoolKeyDao
 * @Description: 学校周边重点人员
 * @Author: CodeFactory
 * @Date: 2021-10-13 10:05:21
 * @Version: 3.0
 **/
@Repository
public interface ISchoolKeyDao {

    /**
     * 新增学校周边重点人员
     *
     * @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
     */
    SchoolKeyDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 学校周边重点人员详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    SchoolKeyBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 学校周边重点人员详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    SchoolKeyPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 学校周边重点人员列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<SchoolKeyDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 学校周边重点人员列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<SchoolKeyBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 学校周边重点人员列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<SchoolKeyPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 学校周边重点人员统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}