package com.qxueyou.scc.school.service; import java.math.BigDecimal; import java.util.List; import java.util.Map; import org.springframework.web.bind.annotation.ResponseBody; import com.qxueyou.scc.base.model.Result; /** * 课件管理 * * @author lihanqi * */ public interface ICourseWareService { /** * 新增章节 * * @param name * @param parentChapterId * @return */ Result addOrUpdateChapter(String chapterId, String subjectId, String name, String parentChapterId); /** * 删除章节 * * @param chapterId * @return */ Result deleteChapter(String[] chapterIds); /** * 拷贝课件 * * @param type 课件类型 * @param id 主键 * @param subjectId 课程 * @param collegeCourseId 科目 * @param chapterId 章节 * @return */ Result doCopyCourseware(String type, String id, String subjectId, String collegeCourseId, String chapterId); /** * 移动课件 * * @param type 课件类型 * @param id 主键 * @param subjectId 课程 * @param collegeCourseId 科目 * @param chapterId 章节 * @return */ Result doMoveCourseware(String type, String id, String subjectId, String collegeCourseId, String chapterId); /** * 删除课件 * * @param types * @param ids * @param delAll * @param orgIds * @param classIds * @return */ Result deleteCourseware(String[] types, String[] ids, Integer delAll, String orgIds[], String classIds[]); /** * 下发课件 * * @param types * @param ids * @param orgIds * @param classIds * @return */ Result doAppointCourseware(String[] types, String[] ids, String orgIds[], String classIds[], String collegeCourseId); /** * 查询已下发的班级 * * @param types * @param ids * @return */ Result findAlready(String[] types, String[] ids); /** * 课件树排序 * * @param ids * @param type * @param parentId * @return */ Result doOrder(String[] ids, String type, String parentId); /** * 删除课件 * * @param types * @param ids * @return */ public Result deleteClassCourseware(String[] types, String[] ids); /** * 拷贝课件 * * @param type 课件类型 * @param id 主键 * @param subjectId 课程 * @param collegeCourseId 科目 * @param chapterId 章节 * @return */ public Result doCopyClassCourseware(String type, String id, String subjectId, String chapterId); /** * 发布和停用 * * @param types * @param ids * @param status * @return */ public Result updateStatus(String[] types, String[] ids, int status); /** * 删除课程和章节级联删除课件 * * @param subjectId 机构课程id * @param chapterId 章节id * @param classSubjectId 班级课程id * @return */ public Result deleteCourseWare(String subjectId, String chapterId); /** * 同步更新课件课程名称 * * @param subjectId * @param subjectName * @return */ public Result updateCourseWare(String subjectId, String subjectName); /** * 下发课件到子机构 * * @param id * @param sourceOrgId * @param targetOrgId * @param collegeCourseId * @return */ public Result insertOrgCourseware(String id, String sourceOrgId, String targetOrgId, String collegeCourseId); /** * 撤回 * * @param id * @param orgId * @return */ public Result deleteOrgCourseware(String id, String orgId); /** * 设置学分 * @param id * @param score * @return */ public Result updateCoursewareScore(String id ,int score) ; /** * 查找课件 * @param id * @param type * @return */ public List> queryCourseware(String id, String type); /** * 更新课件的学分值 * @param coursewareId * @return */ public @ResponseBody Result updateCoursewareScoreValue(String coursewareId,BigDecimal scoreValue); /** * 获取排序 * * @param isOrg * @param subjectId * @param chapterId * @return */ public Map getOrder(boolean isOrg, String subjectId, String chapterId); }