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

import cn.com.tenlion.systembase.pojo.bos.school.SchoolBO;
import cn.com.tenlion.systembase.pojo.dtos.school.SchoolDTO;
import cn.com.tenlion.systembase.pojo.pos.school.SchoolPO;
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: ISchoolDao
 * @Description: 学校
 * @Author: CodeFactory
 * @Date: 2021-10-12 17:11:37
 * @Version: 3.0
 **/
@Repository
public interface ISchoolDao {

    /**
     * 新增学校
     *
     * @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
     */
    SchoolDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 学校详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    SchoolBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 学校详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    SchoolPO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 学校列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<SchoolDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 学校列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<SchoolBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 学校列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<SchoolPO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 学校统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

}