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

import cn.com.tenlion.systembase.pojo.bos.stuteasafe.StuTeaSafeBO;
import cn.com.tenlion.systembase.pojo.dtos.stuteasafe.StuTeaSafeDTO;
import cn.com.tenlion.systembase.pojo.pos.stuteasafe.StuTeaSafePO;
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: IStuTeaSafeDao
 * @Description: 涉及师生安全的案（事）件
 * @Author: CodeFactory
 * @Date: 2021-10-13 11:08:57
 * @Version: 3.0
 **/
@Repository
public interface IStuTeaSafeDao {

    /**
     * 新增涉及师生安全的案（事）件
     *
     * @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
     */
    StuTeaSafeDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 涉及师生安全的案（事）件详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    StuTeaSafeBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 涉及师生安全的案（事）件详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    StuTeaSafePO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 涉及师生安全的案（事）件列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<StuTeaSafeDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 涉及师生安全的案（事）件列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<StuTeaSafeBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 涉及师生安全的案（事）件列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<StuTeaSafePO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 涉及师生安全的案（事）件统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}