From 01c25e083932de635836697207cfe76b37ea8514 Mon Sep 17 00:00:00 2001
From: yn147 <2270338776@qq.com>
Date: 星期一, 12 十二月 2022 11:23:14 +0800
Subject: [PATCH] 修改

---
 src/main/java/com/qxueyou/scc/teach/subject/service/ILectureService.java |  276 ++++++++++++++++++++++++++-----------------------------
 1 files changed, 131 insertions(+), 145 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..cded89f 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
@@ -6,250 +6,236 @@
 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
-	 *            文件夹名称
-	 * @return 上传结果:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},若成功,则返回ChapterId
+	 * 鏂板绔犺妭鏂囦欢澶�
+	 *
+	 * @param subjectId       璇剧▼id
+	 * @param parentChapterId 鐖剁骇绔犺妭鏂囦欢澶筰d
+	 * @param name            鏂囦欢澶瑰悕绉�
+	 * @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
-	 * @param name
-	 *            名称
-	 * @return 上传结果:{"success":true,msg:"success",attrs:{}}
+	 * 淇敼绔犺妭鏂囦欢澶�
+	 *
+	 * @param chapterId 鏂囦欢澶筰d
+	 * @param name      鍚嶇О
+	 * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}}
 	 */
 	Result updateChapter(String chapterId, String name);
 
 	/**
-	 * 删除章节文件夹
-	 * 
-	 * @param chapterIds
-	 *            章节文件夹id数组
-	 * @return 上传结果:{"success":true,msg:"success",attrs:{}}
+	 * 鍒犻櫎绔犺妭鏂囦欢澶�
+	 *
+	 * @param chapterIds 绔犺妭鏂囦欢澶筰d鏁扮粍
+	 * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}}
 	 */
 	Result deleteChapter(String[] chapterIds);
 
 	/**
-	 * 返回下级章节文件夹列表,如果
-	 * 
-	 * @param subjectId
-	 *            课程id
-	 * @param parentChapterId
-	 *            父级章节文件夹id
-	 * @return 返回章节列表
+	 * 杩斿洖涓嬬骇绔犺妭鏂囦欢澶瑰垪琛�,濡傛灉
+	 *
+	 * @param subjectId       璇剧▼id
+	 * @param parentChapterId 鐖剁骇绔犺妭鏂囦欢澶筰d
+	 * @return 杩斿洖绔犺妭鍒楄〃
 	 */
 	List<SubjectChapter> doGetListChapter(String subjectId, String parentChapterId);
 
 	/**
-	 * 返回下级章节文件夹列表,如果
-	 * 
-	 * @param subjectId
-	 *            课程id
-	 * @param parentChapterId
-	 *            父级章节文件夹id
-	 * @return 返回章节列表
+	 * 杩斿洖涓嬬骇绔犺妭鏂囦欢澶瑰垪琛�,濡傛灉
+	 *
+	 * @param subjectId       璇剧▼id
+	 * @param parentChapterId 鐖剁骇绔犺妭鏂囦欢澶筰d
+	 * @return 杩斿洖绔犺妭鍒楄〃
 	 */
 	List<SubjectProgressTreeV> getChapterTreeVList(String subjectId, String parentChapterId);
 
 	/**
-	 * 返回下级章节文件夹列表
-	 * 
-	 * @param subjectId
-	 *            课程id
-	 * @param parentChapterId
-	 *            父级章节文件夹id
-	 * @return 返回章节列表
+	 * 杩斿洖涓嬬骇绔犺妭鏂囦欢澶瑰垪琛�
+	 *
+	 * @param subjectId       璇剧▼id
+	 * @param parentChapterId 鐖剁骇绔犺妭鏂囦欢澶筰d
+	 * @return 杩斿洖绔犺妭鍒楄〃
 	 */
 	List<SubjectChapter> getListChapter(String subjectId, String parentChapterId);
 
 	/**
-	 * 返回所有章节列表,按createTime排序
-	 * 
-	 * @param subjectId
-	 *            课程id
-	 * @return 返回章节列表
+	 * 杩斿洖鎵�鏈夌珷鑺傚垪琛紝鎸塩reateTime鎺掑簭
+	 *
+	 * @param subjectId 璇剧▼id
+	 * @return 杩斿洖绔犺妭鍒楄〃
 	 */
 	List<SubjectChapter> getAllChapterBySubjectId(String subjectId);
 
 	/**
-	 * 新增课件
-	 * 
-	 * @param chapterId
-	 *            章节id
-	 * @param resId
-	 *            资源id
-	 * @return 上传结果:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},若成功,则返回chapterId
+	 * 鏂板璇句欢
+	 *
+	 * @param chapterId 绔犺妭id
+	 * @param resId     璧勬簮id
+	 * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{"chapterId","90023afwe32300fee23"}},鑻ユ垚鍔燂紝鍒欒繑鍥瀋hapterId
 	 */
 	Result addLecture(String chapterId, String resId);
 
+
+//	/**
+//	 * 鏂板鍚庡埛鏂拌浠�
+//	 */
+//	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
-	 * @return 上传结果:{"success":true,msg:"success",attrs:{}}
+	 * 淇敼璇句欢
+	 *
+	 * @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:{}}
+	 * 鍒犻櫎璇句欢
+	 *
+	 * @param lectureIds 璇句欢id鏁扮粍
+	 * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}}
 	 */
 	Result deleteLecture(String[] lectureIds);
 
+//	Result deleteLectureLoad(String[] lectureIds);
+
 	/**
-	 * 复制课件
-	 * 
-	 * @param lectureId
-	 *            课件id
-	 * @param destChapterId
-	 *            目标章节id
-	 * @param name
-	 *            课件名称
-	 * @return 上传结果:{"success":true,msg:"success",attrs:{}}
+	 * 澶嶅埗璇句欢
+	 *
+	 * @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:{}}
+	 * 绉诲姩璇句欢
+	 *
+	 * @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);
 
 	/**
-	 * 课件列表搜索
-	 * 
+	 * 璇句欢鍒楄〃鎼滅储
+	 *
 	 * @return
 	 */
 	List<SubjectLecture> listLectureBySubjectId(String subjectId);
 
 	/**
-	 * 读取课件真实文件访问路径
-	 * 
-	 * @param lectureId
-	 *            课件id数组
-	 * @param attribute
-	 *            课件附加属性
-	 * @return 上传结果:{"success":true,msg:"success",attrs:{"type":"",path:""}}
+	 * 璇诲彇璇句欢鐪熷疄鏂囦欢璁块棶璺緞
+	 *
+	 * @param lectureId 璇句欢id鏁扮粍
+	 * @param attribute 璇句欢闄勫姞灞炴��
+	 * @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);
+
+	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);
+
+
 }

--
Gitblit v1.8.0