package ink.wgink.module.examine.dao.question;

import ink.wgink.exceptions.RemoveException;
import ink.wgink.exceptions.SaveException;
import ink.wgink.exceptions.SearchException;
import ink.wgink.exceptions.UpdateException;
import ink.wgink.interfaces.init.IInitBaseTable;
import ink.wgink.module.examine.pojo.bos.question.QuestionTypeBO;
import ink.wgink.module.examine.pojo.dtos.question.QuestionTypeDTO;
import ink.wgink.module.examine.pojo.pos.question.QuestionTypePO;
import ink.wgink.pojo.dtos.ZTreeDTO;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: IQuestionTypeDao
 * @Description: 试题类型
 * @Author: CodeFactory
 * @Date: 2021-04-04 11:40:13
 * @Version: 3.0
 **/
@Repository
public interface IQuestionTypeDao extends IInitBaseTable {

    /**
     * 新增试题类型
     *
     * @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
     */
    QuestionTypeDTO get(Map<String, Object> params) throws SearchException;

    /**
     * 试题类型详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    QuestionTypeBO getBO(Map<String, Object> params) throws SearchException;

    /**
     * 试题类型详情
     *
     * @param params
     * @return
     * @throws SearchException
     */
    QuestionTypePO getPO(Map<String, Object> params) throws SearchException;

    /**
     * 试题类型列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<QuestionTypeDTO> list(Map<String, Object> params) throws SearchException;

    /**
     * 试题类型列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<QuestionTypeBO> listBO(Map<String, Object> params) throws SearchException;

    /**
     * 试题类型列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<QuestionTypePO> listPO(Map<String, Object> params) throws SearchException;

    /**
     * 试题类型统计
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer count(Map<String, Object> params) throws SearchException;

    /**
     * ZTree列表
     *
     * @param params
     * @return
     * @throws SearchException
     */
    List<ZTreeDTO> listZTree(Map<String, Object> params) throws SearchException;

    /**
     * 子列表个数
     *
     * @param params
     * @return
     * @throws SearchException
     */
    Integer countByParentId(Map<String, Object> params) throws SearchException;
}