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.BasicCollegeParams;
import com.qmth.teachcloud.common.bean.result.BasicCollegeResult;
import com.qmth.teachcloud.common.entity.BasicCollege;
import com.qmth.teachcloud.common.entity.SysUser;

import java.util.List;

/**
 * @Description: 学生学院接口服务类
 * @Author: CaoZixuan
 * @Date: 2022-08-17
 */
public interface BasicCollegeService extends IService<BasicCollege> {
    
    /**
     * 基础专业分页查询
     * @param schoolId 学校id
     * @param collegeName 专业名称模糊查询
     * @param pageNumber 分页页数
     * @param pageSize 分页容量
     * @return 分页结果
     */
    IPage<BasicCollegeResult> basicCollegePage(Long schoolId, String collegeName, int pageNumber, int pageSize);

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

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