From 068fc7f2e81178e55fa191a13709af64b1a163f6 Mon Sep 17 00:00:00 2001 From: EricsHu <hrr145632> Date: 星期一, 05 十二月 2022 14:27:43 +0800 Subject: [PATCH] 处理编码 --- src/main/java/com/qxueyou/scc/teach/subject/service/ILectureService.java | 216 +++++++++++++++++++++++++++++------------------------ 1 files changed, 118 insertions(+), 98 deletions(-) diff --git a/src/main/java/com/qxueyou/scc/teach/subject/service/ILectureService.java b/src/main/java/com/qxueyou/scc/teach/subject/service/ILectureService.java index 7f60922..9b82060 100644 --- a/src/main/java/com/qxueyou/scc/teach/subject/service/ILectureService.java +++ b/src/main/java/com/qxueyou/scc/teach/subject/service/ILectureService.java @@ -14,242 +14,262 @@ public interface ILectureService { /** - * 新增章节文件夹 - * + * 鏂板绔犺妭鏂囦欢澶� + * * @param subjectId - * 课程id + * 璇剧▼id * @param parentChapterId - * 父级章节文件夹id + * 鐖剁骇绔犺妭鏂囦欢澶筰d * @param name - * 文件夹名称 - * @return 上传结果:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},若成功,则返回ChapterId + * 鏂囦欢澶瑰悕绉� + * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},鑻ユ垚鍔燂紝鍒欒繑鍥濩hapterId */ Result addChapter(String subjectId, String parentChapterId, String name); /** - * 读取课件目录 - * + * 璇诲彇璇句欢鐩綍 + * * @param chapterId * @return */ SubjectChapter readChapter(String chapterId); /** - * 修改章节文件夹 - * + * 淇敼绔犺妭鏂囦欢澶� + * * @param chapterId - * 文件夹id + * 鏂囦欢澶筰d * @param name - * 名称 - * @return 上传结果:{"success":true,msg:"success",attrs:{}} + * 鍚嶇О + * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}} */ Result updateChapter(String chapterId, String name); /** - * 删除章节文件夹 - * + * 鍒犻櫎绔犺妭鏂囦欢澶� + * * @param chapterIds - * 章节文件夹id数组 - * @return 上传结果:{"success":true,msg:"success",attrs:{}} + * 绔犺妭鏂囦欢澶筰d鏁扮粍 + * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}} */ Result deleteChapter(String[] chapterIds); /** - * 返回下级章节文件夹列表,如果 - * + * 杩斿洖涓嬬骇绔犺妭鏂囦欢澶瑰垪琛�,濡傛灉 + * * @param subjectId - * 课程id + * 璇剧▼id * @param parentChapterId - * 父级章节文件夹id - * @return 返回章节列表 + * 鐖剁骇绔犺妭鏂囦欢澶筰d + * @return 杩斿洖绔犺妭鍒楄〃 */ List<SubjectChapter> doGetListChapter(String subjectId, String parentChapterId); /** - * 返回下级章节文件夹列表,如果 - * + * 杩斿洖涓嬬骇绔犺妭鏂囦欢澶瑰垪琛�,濡傛灉 + * * @param subjectId - * 课程id + * 璇剧▼id * @param parentChapterId - * 父级章节文件夹id - * @return 返回章节列表 + * 鐖剁骇绔犺妭鏂囦欢澶筰d + * @return 杩斿洖绔犺妭鍒楄〃 */ List<SubjectProgressTreeV> getChapterTreeVList(String subjectId, String parentChapterId); /** - * 返回下级章节文件夹列表 - * + * 杩斿洖涓嬬骇绔犺妭鏂囦欢澶瑰垪琛� + * * @param subjectId - * 课程id + * 璇剧▼id * @param parentChapterId - * 父级章节文件夹id - * @return 返回章节列表 + * 鐖剁骇绔犺妭鏂囦欢澶筰d + * @return 杩斿洖绔犺妭鍒楄〃 */ List<SubjectChapter> getListChapter(String subjectId, String parentChapterId); /** - * 返回所有章节列表,按createTime排序 - * + * 杩斿洖鎵�鏈夌珷鑺傚垪琛紝鎸塩reateTime鎺掑簭 + * * @param subjectId - * 课程id - * @return 返回章节列表 + * 璇剧▼id + * @return 杩斿洖绔犺妭鍒楄〃 */ List<SubjectChapter> getAllChapterBySubjectId(String subjectId); /** - * 新增课件 - * + * 鏂板璇句欢 + * * @param chapterId - * 章节id + * 绔犺妭id * @param resId - * 资源id - * @return 上传结果:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},若成功,则返回chapterId + * 璧勬簮id + * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},鑻ユ垚鍔燂紝鍒欒繑鍥瀋hapterId */ Result addLecture(String chapterId, String resId); + /** - * 读取课件 - * + * 鏂板鍚庡埛鏂拌浠� + */ + Result addLectureLoad(String sectionId); + /** + * 璇诲彇璇句欢 + * * @param lectureId - * 课件id + * 璇句欢id * @return SubjectLecture */ SubjectLecture readLecture(String lectureId); /** - * 读取视频课件 - * + * 璇诲彇瑙嗛璇句欢 + * * @param lectureId - * 课件id + * 璇句欢id * @return SubjectLecture */ LectureVideoV readVideoLecture(String lectureId); /** - * 读取音频课件 - * + * 璇诲彇闊抽璇句欢 + * * @param lectureId - * 课件id + * 璇句欢id * @return LectureAudioV */ LectureAudioV readAudioLecture(String lectureId); /** - * 修改课件 - * + * 淇敼璇句欢 + * * @param lectureId - * 课件id + * 璇句欢id * @param resId - * 资源id - * @return 上传结果:{"success":true,msg:"success",attrs:{}} + * 璧勬簮id + * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}} */ Result updateLecture(String lectureId, String resId); /** - * 删除课件 - * + * 鍒犻櫎璇句欢 + * * @param lectureIds - * 课件id数组 - * @return 上传结果:{"success":true,msg:"success",attrs:{}} + * 璇句欢id鏁扮粍 + * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}} */ Result deleteLecture(String[] lectureIds); + Result deleteLectureLoad(String[] lectureIds); + /** - * 复制课件 - * + * 澶嶅埗璇句欢 + * * @param lectureId - * 课件id + * 璇句欢id * @param destChapterId - * 目标章节id + * 鐩爣绔犺妭id * @param name - * 课件名称 - * @return 上传结果:{"success":true,msg:"success",attrs:{}} + * 璇句欢鍚嶇О + * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}} */ Result doCopyLecture(String lectureId, String destChapterId, String name); /** - * 移动课件 - * + * 绉诲姩璇句欢 + * * @param lectureId - * 课件id + * 璇句欢id * @param destChapterId - * 目标章节id + * 鐩爣绔犺妭id * @param name - * 课件名称 - * @return 上传结果:{"success":true,msg:"success",attrs:{}} + * 璇句欢鍚嶇О + * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}} */ Result doMoveLecture(String lectureId, String destChapterId, String name); /** - * 课件列表搜索 - * + * 璇句欢鍒楄〃鎼滅储 + * * @param chapterId - * 章节id + * 绔犺妭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 + * 绔犺妭id * @param keyword - * 关键字 + * 鍏抽敭瀛� * @param type - * 类型 + * 绫诲瀷 * @return */ int listLectureCount(String chapterId, String keyword, String type); /** - * 课件列表搜索 - * + * 璇句欢鍒楄〃鎼滅储 + * * @param chapterId - * 章节id + * 绔犺妭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); /** - * 课件列表搜索 - * + * 璇句欢鍒楄〃鎼滅储 + * * @return */ List<SubjectLecture> listLectureBySubjectId(String subjectId); /** - * 读取课件真实文件访问路径 - * + * 璇诲彇璇句欢鐪熷疄鏂囦欢璁块棶璺緞 + * * @param lectureId - * 课件id数组 + * 璇句欢id鏁扮粍 * @param attribute - * 课件附加属性 - * @return 上传结果:{"success":true,msg:"success",attrs:{"type":"",path:""}} + * 璇句欢闄勫姞灞炴�� + * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{"type":"",path:""}} */ Result readLectureAccessPath(String lectureId, String attribute); Result doStudy(String lectureId, Double from, Double to); /** - * 读取文档课件 + * 璇诲彇鏂囨。璇句欢 */ LectureDocV readDocLecture(String handoutId); + + /** + * 璇句欢璇︽儏鏌ヨ + * @param learnerId + * @param subjectId + * @param keyword + * @param pageSize + * @param pageNum + * @param type + * @return + */ + List<MyLectureV> listLectureVBySubjectId(String learnerId, String subjectId, String keyword, Integer pageSize, + Integer pageNum, String type); } -- Gitblit v1.8.0