package com.qxueyou.scc.admin.classes.service;
|
|
import java.util.List;
|
import java.util.Map;
|
|
import com.qxueyou.scc.admin.classes.model.ClsSubjectChapter;
|
import com.qxueyou.scc.admin.classes.model.ClsSubjectLecture;
|
import com.qxueyou.scc.admin.progress.model.view.SubjectProgressTreeV;
|
import com.qxueyou.scc.base.model.Pager;
|
import com.qxueyou.scc.base.model.Result;
|
import com.qxueyou.scc.teach.subject.model.view.MyLectureV;
|
|
public interface IClassLectureService {
|
|
/**
|
* 新增章节文件夹
|
*
|
* @param parentChapterId
|
* 父级章节文件夹id
|
* @param name
|
* 文件夹名称
|
* @return 上传结果:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},若成功,则返回ChapterId
|
*/
|
Result addChapter(String parentChapterId, String name);
|
|
/**
|
* 返回下级章节文件夹列表,如果
|
*
|
* @param classId
|
* 班级id
|
* @param parentChapterId
|
* 父级章节文件夹id
|
* @return 返回章节列表
|
*/
|
List<SubjectProgressTreeV> getChapterTreeVList(String classId, String parentChapterId);
|
|
/**
|
* 课件列表搜索
|
*
|
* @param chapterId
|
* 章节id
|
* @param keyword
|
* 关键字
|
* @param pageSize
|
* 页码
|
* @param pageNum
|
* 每页显示数据条数
|
* @param type
|
* 类型
|
* @return
|
*/
|
List<MyLectureV> listLectureV(String learnerId, String chapterId, String keyword, Integer pageSize, Integer pageNum,
|
String type);
|
|
/**
|
* 修改章节文件夹
|
*
|
* @param chapterId
|
* 文件夹id
|
* @param name
|
* 名称
|
* @return 上传结果:{"success":true,msg:"success",attrs:{}}
|
*/
|
Result updateChapter(String chapterId, String name);
|
|
/**
|
* 删除章节文件夹
|
*
|
* @param chapterIds
|
* 章节文件夹id数组
|
* @return 上传结果:{"success":true,msg:"success",attrs:{}}
|
*/
|
Result deleteChapter(String[] chapterIds);
|
|
/**
|
* 新增课件
|
*
|
* @param chapterId
|
* 章节id
|
* @param resId
|
* 资源id
|
* @return 上传结果:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},若成功,则返回chapterId
|
*/
|
Result addClsLecture(String chapterId, String resId);
|
|
/**
|
* 修改课件
|
*
|
* @param lectureId
|
* 课件id
|
* @param resId
|
* 资源id
|
* @return 上传结果:{"success":true,msg:"success",attrs:{}}
|
*/
|
Result updateLecture(String lectureId, String resId);
|
|
/**
|
* 删除课件
|
*
|
* @param lectureIds
|
* 课件id数组
|
* @return 上传结果:{"success":true,msg:"success",attrs:{}}
|
*/
|
Result deleteLecture(String[] lectureIds);
|
|
/**
|
* 课件学习进度提交
|
*
|
* @param clsLectureId
|
* @param from
|
* @param to
|
* @return
|
*/
|
Result doStudy(String clsLectureId, Double from, Double to);
|
|
/**
|
* 复制课件
|
*
|
* @param lectureId
|
* 课件id
|
* @param destChapterId
|
* 目标章节id
|
* @param name
|
* 课件名称
|
* @return 上传结果:{"success":true,msg:"success",attrs:{}}
|
*/
|
Result doCopyLecture(String lectureId, String destChapterId, String name);
|
|
/**
|
* 移动课件
|
*
|
* @param lectureId
|
* 课件id
|
* @param destChapterId
|
* 目标章节id
|
* @param name
|
* 课件名称
|
* @return 上传结果:{"success":true,msg:"success",attrs:{}}
|
*/
|
Result doMoveLecture(String lectureId, String destChapterId, String name);
|
|
/**
|
* 课件列表搜索
|
*
|
* @param chapterId
|
* 章节id
|
* @param keyword
|
* 关键字
|
* @param pageNo
|
* 页码
|
* @param pageNum
|
* 每页显示数据条数
|
* @param type
|
* 类型
|
* @return
|
*/
|
List<ClsSubjectLecture> listLecture(String chapterId, String keyword, Integer pageNo, Integer pageNum, String type,
|
String classId);
|
|
/**
|
* 课件列表
|
*
|
* @param classId
|
* 章节id
|
* @return
|
*/
|
List<ClsSubjectLecture> listLecture(String classId);
|
|
/**
|
* 读取课件真实文件访问路径
|
*
|
* @param lectureId
|
* 课件id数组
|
* @param attribute
|
* 课件附加属性
|
* @return 上传结果:{"success":true,msg:"success",attrs:{"type":"",path:""}}
|
*/
|
Result readLectureAccessPath(String lectureId, String attribute);
|
|
/**
|
* 通过id读取班级的课件对象
|
*/
|
ClsSubjectLecture readClsLecture(String id);
|
|
/**
|
* 读取课件目录
|
*
|
* @param chapterId
|
* @return
|
*/
|
ClsSubjectChapter readChapter(String chapterId);
|
|
/**
|
* 课件列表大小
|
*
|
* @param chapterId
|
* 章节id
|
* @param keyword
|
* 关键字
|
* @param type
|
* 类型
|
* @return
|
*/
|
int listLectureCount(String chapterId, String keyword, String type);
|
|
/**
|
* 返回下级章节文件夹列表
|
*
|
* @param classId
|
* 班级id
|
* @param classId
|
* 课程id
|
* @param parentChapterId
|
* 父级章节文件夹id
|
* @return 返回章节列表
|
*/
|
List<ClsSubjectChapter> getListChapter(String classId,String subjectId, String parentChapterId);
|
|
/**
|
* 返回下级章节文件夹列表,如果
|
*
|
* @param classId
|
* 班级id
|
* @param subjectId
|
* 课程id
|
* @param parentChapterId
|
* 父级章节文件夹id
|
* @return 返回章节列表
|
*/
|
List<ClsSubjectChapter> doGetListChapter(String classId,String subjectId, String parentChapterId);
|
|
/**
|
* 把课程上的课件拷贝到班级课程
|
*
|
* @param subjectId
|
* 课程id
|
* @param classId
|
* 班级id
|
* @return
|
*/
|
Result doCopyLecturesToClass(String origSubjectId, String subjectId, String classId);
|
|
|
/**
|
* 清理所有的班级课件
|
* @param subjectId
|
* @param classId
|
* @return
|
*/
|
Result doClearLecturesToClass(String subjectId, String classId);
|
|
/**
|
* 根据课程查询课件
|
*
|
* @param subjectId
|
* @param type
|
* @param classId
|
* @return
|
*/
|
List<Map<String, Object>> listLectureBySubject(String subjectId, String type, String classId);
|
|
/**
|
* 查询班级内的课件和课程
|
*
|
* @param classId
|
* @return
|
*/
|
Result listSubjectLecture(String classId, String sort, Pager pager);
|
|
/**
|
* 获取课程下的课件
|
*
|
* @param subjectId
|
* @param type
|
* @return
|
*/
|
public Map<String,Object> listLectureBySubjectOrderCreateTime(String subjectId, String classId, String sort, Pager pager);
|
|
/**
|
* 学员端获取课程下课件
|
*
|
* @param subjectId
|
* @param type
|
* @return
|
*/
|
public List<Map<String, Object>> listStuLectureBySubject(String subjectId, String classId);
|
|
/**
|
* 学员端获取课程下课件数量
|
*
|
* @param subjectId
|
* @param type
|
* @return
|
*/
|
public long stuLectureCountBySubject(String subjectId, String classId);
|
|
/**
|
* 获取章节下的课件
|
*
|
* @param chapterLst
|
* @param lectures
|
* @return
|
*/
|
public List<ClsSubjectChapter> getChapterLectures(List<ClsSubjectChapter> chapterLst, List<Map<String, Object>> lectures);
|
|
/**
|
* 获取文档页码
|
*
|
* @param resItemId
|
* @return
|
*/
|
public int readDocPageCount(String resItemId);
|
|
/**
|
* 公开课课件
|
*
|
* @param subjectId
|
* @param classId
|
* @param sort
|
* @param pager
|
* @return
|
*/
|
public Map<String,Object> listOpenLectureBySubjectOrderCreateTime(String subjectId, String sort, Pager pager);
|
|
/**
|
* 课件按目录分类
|
*
|
* @param classId
|
* @param subjectId
|
* @param type
|
* @return
|
*/
|
public Result coursewareChapterList(String classId,String subjectId, String type);
|
}
|