package com.ruoyi.hezhi.mapper;

import com.ruoyi.hezhi.domain.TbSubjectWarehouseClass;

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

/**
 * 题库分类Mapper接口
 *
 * @author ruoyi
 * @date 2024-11-06
 */
public interface TbSubjectWarehouseClassMapper
{
    /**
     * 查询题库分类
     *
     * @param subjectWarehouseClassId 题库分类主键
     * @return 题库分类
     */
    public TbSubjectWarehouseClass selectTbSubjectWarehouseClassBySubjectWarehouseClassId(Long subjectWarehouseClassId);

    /**
     * 查询题库分类列表
     *
     * @param tbSubjectWarehouseClass 题库分类
     * @return 题库分类集合
     */
    public List<TbSubjectWarehouseClass> selectTbSubjectWarehouseClassList(TbSubjectWarehouseClass tbSubjectWarehouseClass);

    /**
     * 查询题库分类列表
     *
     * @return 题库分类集合
     */
    public List<TbSubjectWarehouseClass> getAllSubjectWarehouseCalssList();

    /**
     * 新增题库分类
     *
     * @param tbSubjectWarehouseClass 题库分类
     * @return 结果
     */
    public int insertTbSubjectWarehouseClass(TbSubjectWarehouseClass tbSubjectWarehouseClass);

    /**
     * 修改题库分类
     *
     * @param tbSubjectWarehouseClass 题库分类
     * @return 结果
     */
    public int updateTbSubjectWarehouseClass(TbSubjectWarehouseClass tbSubjectWarehouseClass);

    /**
     * 删除题库分类
     *
     * @param subjectWarehouseClassId 题库分类主键
     * @return 结果
     */
    public int deleteTbSubjectWarehouseClassBySubjectWarehouseClassId(Long subjectWarehouseClassId);

    /**
     * 批量删除题库分类
     *
     * @param subjectWarehouseClassIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbSubjectWarehouseClassBySubjectWarehouseClassIds(Long[] subjectWarehouseClassIds);

    /**
     * 题库列表
     *
     * @param params 参数
     * @return 题库列表
     */
    public List<Map<String, Object>> getSubjectWarehouseClassList(Map<String, Object> params);

    public TbSubjectWarehouseClass getSubjectWarehouseClass(Long subjectWarehouseClassId);
}
