package com.qmth.teachcloud.common.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import com.qmth.teachcloud.common.bean.params.BasicMajorParams;
import com.qmth.teachcloud.common.bean.result.BasicMajorResult;
import com.qmth.teachcloud.common.entity.BasicMajor;
import com.qmth.teachcloud.common.entity.SysUser;

import java.util.List;

/**
 * <p>
 * 专业字典表 服务类
 * </p>
 *
 * @author wangliang
 * @since 2021-10-28
 */
public interface BasicMajorService extends IService<BasicMajor> {

    /**
     * 基础专业分页查询
     * @param schoolId 学校id
     * @param majorName 专业名称模糊查询
     * @param pageNumber 分页页数
     * @param pageSize 分页容量
     * @return 分页结果
     */
    IPage<BasicMajorResult> basicMajorPage(Long schoolId,String majorName, int pageNumber, int pageSize);

    /**
     * 基础专业编辑
     * @param basicMajorParams 编辑参数
     * @return 编辑后该专业id
     */
    Long saveBasicMajor(BasicMajorParams basicMajorParams, SysUser requestUser) throws IllegalAccessException;

    /**
     * 专业删除
     * @param idList 专业主键id集合
     * @return 是否删除成功
     */
    boolean deleteBasicMajorByIdList(List<Long> idList);
}
