| | |
| | | import com.qxueyou.scc.base.model.Result; |
| | | import com.qxueyou.scc.teach.subject.model.SubjectChapter; |
| | | import com.qxueyou.scc.teach.subject.model.SubjectLecture; |
| | | import com.qxueyou.scc.teach.subject.model.view.LectureAudioV; |
| | | import com.qxueyou.scc.teach.subject.model.view.LectureDocV; |
| | | import com.qxueyou.scc.teach.subject.model.view.LectureVideoV; |
| | | import com.qxueyou.scc.teach.subject.model.view.MyLectureV; |
| | | import com.qxueyou.scc.teach.subject.model.view.*; |
| | | |
| | | public interface ILectureService { |
| | | |
| | | /** |
| | | * 新增章节文件夹 |
| | | * |
| | | * @param subjectId |
| | | * 课程id |
| | | * @param parentChapterId |
| | | * 父级章节文件夹id |
| | | * @param name |
| | | * 文件夹名称 |
| | | * @param subjectId 课程id |
| | | * @param parentChapterId 父级章节文件夹id |
| | | * @param name 文件夹名称 |
| | | * @return 上传结果:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},若成功,则返回ChapterId |
| | | */ |
| | | Result addChapter(String subjectId, String parentChapterId, String name); |
| | |
| | | /** |
| | | * 修改章节文件夹 |
| | | * |
| | | * @param chapterId |
| | | * 文件夹id |
| | | * @param name |
| | | * 名称 |
| | | * @param chapterId 文件夹id |
| | | * @param name 名称 |
| | | * @return 上传结果:{"success":true,msg:"success",attrs:{}} |
| | | */ |
| | | Result updateChapter(String chapterId, String name); |
| | |
| | | /** |
| | | * 删除章节文件夹 |
| | | * |
| | | * @param chapterIds |
| | | * 章节文件夹id数组 |
| | | * @param chapterIds 章节文件夹id数组 |
| | | * @return 上传结果:{"success":true,msg:"success",attrs:{}} |
| | | */ |
| | | Result deleteChapter(String[] chapterIds); |
| | |
| | | /** |
| | | * 返回下级章节文件夹列表,如果 |
| | | * |
| | | * @param subjectId |
| | | * 课程id |
| | | * @param parentChapterId |
| | | * 父级章节文件夹id |
| | | * @param subjectId 课程id |
| | | * @param parentChapterId 父级章节文件夹id |
| | | * @return 返回章节列表 |
| | | */ |
| | | List<SubjectChapter> doGetListChapter(String subjectId, String parentChapterId); |
| | |
| | | /** |
| | | * 返回下级章节文件夹列表,如果 |
| | | * |
| | | * @param subjectId |
| | | * 课程id |
| | | * @param parentChapterId |
| | | * 父级章节文件夹id |
| | | * @param subjectId 课程id |
| | | * @param parentChapterId 父级章节文件夹id |
| | | * @return 返回章节列表 |
| | | */ |
| | | List<SubjectProgressTreeV> getChapterTreeVList(String subjectId, String parentChapterId); |
| | |
| | | /** |
| | | * 返回下级章节文件夹列表 |
| | | * |
| | | * @param subjectId |
| | | * 课程id |
| | | * @param parentChapterId |
| | | * 父级章节文件夹id |
| | | * @param subjectId 课程id |
| | | * @param parentChapterId 父级章节文件夹id |
| | | * @return 返回章节列表 |
| | | */ |
| | | List<SubjectChapter> getListChapter(String subjectId, String parentChapterId); |
| | |
| | | /** |
| | | * 返回所有章节列表,按createTime排序 |
| | | * |
| | | * @param subjectId |
| | | * 课程id |
| | | * @param subjectId 课程id |
| | | * @return 返回章节列表 |
| | | */ |
| | | List<SubjectChapter> getAllChapterBySubjectId(String subjectId); |
| | |
| | | /** |
| | | * 新增课件 |
| | | * |
| | | * @param chapterId |
| | | * 章节id |
| | | * @param resId |
| | | * 资源id |
| | | * @param chapterId 章节id |
| | | * @param resId 资源id |
| | | * @return 上传结果:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},若成功,则返回chapterId |
| | | */ |
| | | Result addLecture(String chapterId, String resId); |
| | | |
| | | |
| | | /** |
| | | * 新增后刷新课件 |
| | | */ |
| | | Result addLectureLoad(String sectionId); |
| | | // /** |
| | | // * 新增后刷新课件 |
| | | // */ |
| | | // Result addLectureLoad(String sectionId); |
| | | |
| | | /** |
| | | * 读取课件 |
| | | * |
| | | * @param lectureId |
| | | * 课件id |
| | | * @param lectureId 课件id |
| | | * @return SubjectLecture |
| | | */ |
| | | SubjectLecture readLecture(String lectureId); |
| | |
| | | /** |
| | | * 读取视频课件 |
| | | * |
| | | * @param lectureId |
| | | * 课件id |
| | | * @param lectureId 课件id |
| | | * @return SubjectLecture |
| | | */ |
| | | LectureVideoV readVideoLecture(String lectureId); |
| | |
| | | /** |
| | | * 读取音频课件 |
| | | * |
| | | * @param lectureId |
| | | * 课件id |
| | | * @param lectureId 课件id |
| | | * @return LectureAudioV |
| | | */ |
| | | LectureAudioV readAudioLecture(String lectureId); |
| | |
| | | /** |
| | | * 修改课件 |
| | | * |
| | | * @param lectureId |
| | | * 课件id |
| | | * @param resId |
| | | * 资源id |
| | | * @param lectureId 课件id |
| | | * @param resId 资源id |
| | | * @return 上传结果:{"success":true,msg:"success",attrs:{}} |
| | | */ |
| | | Result updateLecture(String lectureId, String resId); |
| | |
| | | /** |
| | | * 删除课件 |
| | | * |
| | | * @param lectureIds |
| | | * 课件id数组 |
| | | * @param lectureIds 课件id数组 |
| | | * @return 上传结果:{"success":true,msg:"success",attrs:{}} |
| | | */ |
| | | Result deleteLecture(String[] lectureIds); |
| | | |
| | | Result deleteLectureLoad(String[] lectureIds); |
| | | // Result deleteLectureLoad(String[] lectureIds); |
| | | |
| | | /** |
| | | * 复制课件 |
| | | * |
| | | * @param lectureId |
| | | * 课件id |
| | | * @param destChapterId |
| | | * 目标章节id |
| | | * @param name |
| | | * 课件名称 |
| | | * @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 |
| | | * 课件名称 |
| | | * @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 pageSize |
| | | * 页码 |
| | | * @param pageNum |
| | | * 每页显示数据条数 |
| | | * @param type |
| | | * 类型 |
| | | * @param chapterId 章节id |
| | | * @param keyword 关键字 |
| | | * @param pageSize 页码 |
| | | * @param pageNum 每页显示数据条数 |
| | | * @param type 类型 |
| | | * @return |
| | | */ |
| | | List<SubjectLecture> listLecture(String chapterId, String keyword, Integer pageSize, Integer pageNum, String type); |
| | |
| | | /** |
| | | * 课件列表大小 |
| | | * |
| | | * @param chapterId |
| | | * 章节id |
| | | * @param keyword |
| | | * 关键字 |
| | | * @param type |
| | | * 类型 |
| | | * @param chapterId 章节id |
| | | * @param keyword 关键字 |
| | | * @param type 类型 |
| | | * @return |
| | | */ |
| | | int listLectureCount(String chapterId, String keyword, String type); |
| | |
| | | /** |
| | | * 课件列表搜索 |
| | | * |
| | | * @param chapterId |
| | | * 章节id |
| | | * @param keyword |
| | | * 关键字 |
| | | * @param pageSize |
| | | * 页码 |
| | | * @param pageNum |
| | | * 每页显示数据条数 |
| | | * @param type |
| | | * 类型 |
| | | * @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); |
| | | String type); |
| | | |
| | | /** |
| | | * 课件列表搜索 |
| | |
| | | /** |
| | | * 读取课件真实文件访问路径 |
| | | * |
| | | * @param lectureId |
| | | * 课件id数组 |
| | | * @param attribute |
| | | * 课件附加属性 |
| | | * @param lectureId 课件id数组 |
| | | * @param attribute 课件附加属性 |
| | | * @return 上传结果:{"success":true,msg:"success",attrs:{"type":"",path:""}} |
| | | */ |
| | | Result readLectureAccessPath(String lectureId, String attribute); |
| | |
| | | |
| | | /** |
| | | * 课件详情查询 |
| | | * |
| | | * @param learnerId |
| | | * @param subjectId |
| | | * @param keyword |
| | |
| | | * @return |
| | | */ |
| | | List<MyLectureV> listLectureVBySubjectId(String learnerId, String subjectId, String keyword, Integer pageSize, |
| | | Integer pageNum, String type); |
| | | Integer pageNum, String type); |
| | | |
| | | List<MyOpenLectureV> listOpenLectureVBySubjectId(String learnerId, String subjectId, String keyword, Integer pageSize, |
| | | Integer pageNum, String type); |
| | | |
| | | List<SubjectLecture> getSubjectLectureVByChapterId(String chapterId, String keyword, Integer limit, Integer pageNum); |
| | | |
| | | List<MyOpenLectureV> getMyOpenLectureVByChapterId(String userId, String chapterId, String keyword, Integer limit, Integer pageNum); |
| | | |
| | | |
| | | } |