package com.reading.platform.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.reading.platform.entity.SchoolCourse;

/**
 * 校本课程服务接口
 */
public interface SchoolCourseService extends IService<SchoolCourse> {

    /**
     * 获取校本课程分页
     */
    Page<SchoolCourse> getCourses(int pageNum, int pageSize, String tenantId, String keyword);

    /**
     * 根据 ID 获取校本课程
     */
    SchoolCourse getCourseById(String id);

    /**
     * 创建校本课程
     */
    SchoolCourse createCourse(String tenantId, String userId, SchoolCourse course);

    /**
     * 更新校本课程
     */
    SchoolCourse updateCourse(String id, SchoolCourse course);

    /**
     * 删除校本课程
     */
    void deleteCourse(String id);
}
