From 888af852af74ecd24f4f4370b61427771e60d314 Mon Sep 17 00:00:00 2001
From: Administrator <2863138610@qq.com>
Date: 星期一, 12 十二月 2022 11:18:56 +0800
Subject: [PATCH] 华为云obs上传访问

---
 src/main/java/com/qxueyou/scc/teach/subject/service/ILectureService.java |  156 ++++++++++++++++++++-------------------------------
 1 files changed, 61 insertions(+), 95 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 9b82060..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,22 +6,16 @@
 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
-	 *            鐖剁骇绔犺妭鏂囦欢澶筰d
-	 * @param name
-	 *            鏂囦欢澶瑰悕绉�
+	 * @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);
@@ -37,10 +31,8 @@
 	/**
 	 * 淇敼绔犺妭鏂囦欢澶�
 	 *
-	 * @param chapterId
-	 *            鏂囦欢澶筰d
-	 * @param name
-	 *            鍚嶇О
+	 * @param chapterId 鏂囦欢澶筰d
+	 * @param name      鍚嶇О
 	 * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}}
 	 */
 	Result updateChapter(String chapterId, String name);
@@ -48,8 +40,7 @@
 	/**
 	 * 鍒犻櫎绔犺妭鏂囦欢澶�
 	 *
-	 * @param chapterIds
-	 *            绔犺妭鏂囦欢澶筰d鏁扮粍
+	 * @param chapterIds 绔犺妭鏂囦欢澶筰d鏁扮粍
 	 * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}}
 	 */
 	Result deleteChapter(String[] chapterIds);
@@ -57,10 +48,8 @@
 	/**
 	 * 杩斿洖涓嬬骇绔犺妭鏂囦欢澶瑰垪琛�,濡傛灉
 	 *
-	 * @param subjectId
-	 *            璇剧▼id
-	 * @param parentChapterId
-	 *            鐖剁骇绔犺妭鏂囦欢澶筰d
+	 * @param subjectId       璇剧▼id
+	 * @param parentChapterId 鐖剁骇绔犺妭鏂囦欢澶筰d
 	 * @return 杩斿洖绔犺妭鍒楄〃
 	 */
 	List<SubjectChapter> doGetListChapter(String subjectId, String parentChapterId);
@@ -68,10 +57,8 @@
 	/**
 	 * 杩斿洖涓嬬骇绔犺妭鏂囦欢澶瑰垪琛�,濡傛灉
 	 *
-	 * @param subjectId
-	 *            璇剧▼id
-	 * @param parentChapterId
-	 *            鐖剁骇绔犺妭鏂囦欢澶筰d
+	 * @param subjectId       璇剧▼id
+	 * @param parentChapterId 鐖剁骇绔犺妭鏂囦欢澶筰d
 	 * @return 杩斿洖绔犺妭鍒楄〃
 	 */
 	List<SubjectProgressTreeV> getChapterTreeVList(String subjectId, String parentChapterId);
@@ -79,10 +66,8 @@
 	/**
 	 * 杩斿洖涓嬬骇绔犺妭鏂囦欢澶瑰垪琛�
 	 *
-	 * @param subjectId
-	 *            璇剧▼id
-	 * @param parentChapterId
-	 *            鐖剁骇绔犺妭鏂囦欢澶筰d
+	 * @param subjectId       璇剧▼id
+	 * @param parentChapterId 鐖剁骇绔犺妭鏂囦欢澶筰d
 	 * @return 杩斿洖绔犺妭鍒楄〃
 	 */
 	List<SubjectChapter> getListChapter(String subjectId, String parentChapterId);
@@ -90,8 +75,7 @@
 	/**
 	 * 杩斿洖鎵�鏈夌珷鑺傚垪琛紝鎸塩reateTime鎺掑簭
 	 *
-	 * @param subjectId
-	 *            璇剧▼id
+	 * @param subjectId 璇剧▼id
 	 * @return 杩斿洖绔犺妭鍒楄〃
 	 */
 	List<SubjectChapter> getAllChapterBySubjectId(String subjectId);
@@ -99,24 +83,22 @@
 	/**
 	 * 鏂板璇句欢
 	 *
-	 * @param chapterId
-	 *            绔犺妭id
-	 * @param resId
-	 *            璧勬簮id
+	 * @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);
+//	/**
+//	 * 鏂板鍚庡埛鏂拌浠�
+//	 */
+//	Result addLectureLoad(String sectionId);
+
 	/**
 	 * 璇诲彇璇句欢
 	 *
-	 * @param lectureId
-	 *            璇句欢id
+	 * @param lectureId 璇句欢id
 	 * @return SubjectLecture
 	 */
 	SubjectLecture readLecture(String lectureId);
@@ -124,8 +106,7 @@
 	/**
 	 * 璇诲彇瑙嗛璇句欢
 	 *
-	 * @param lectureId
-	 *            璇句欢id
+	 * @param lectureId 璇句欢id
 	 * @return SubjectLecture
 	 */
 	LectureVideoV readVideoLecture(String lectureId);
@@ -133,8 +114,7 @@
 	/**
 	 * 璇诲彇闊抽璇句欢
 	 *
-	 * @param lectureId
-	 *            璇句欢id
+	 * @param lectureId 璇句欢id
 	 * @return LectureAudioV
 	 */
 	LectureAudioV readAudioLecture(String lectureId);
@@ -142,10 +122,8 @@
 	/**
 	 * 淇敼璇句欢
 	 *
-	 * @param lectureId
-	 *            璇句欢id
-	 * @param resId
-	 *            璧勬簮id
+	 * @param lectureId 璇句欢id
+	 * @param resId     璧勬簮id
 	 * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{}}
 	 */
 	Result updateLecture(String lectureId, String resId);
@@ -153,23 +131,19 @@
 	/**
 	 * 鍒犻櫎璇句欢
 	 *
-	 * @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);
@@ -177,12 +151,9 @@
 	/**
 	 * 绉诲姩璇句欢
 	 *
-	 * @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);
@@ -190,16 +161,11 @@
 	/**
 	 * 璇句欢鍒楄〃鎼滅储
 	 *
-	 * @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);
@@ -207,12 +173,9 @@
 	/**
 	 * 璇句欢鍒楄〃澶у皬
 	 *
-	 * @param chapterId
-	 *            绔犺妭id
-	 * @param keyword
-	 *            鍏抽敭瀛�
-	 * @param type
-	 *            绫诲瀷
+	 * @param chapterId 绔犺妭id
+	 * @param keyword   鍏抽敭瀛�
+	 * @param type      绫诲瀷
 	 * @return
 	 */
 	int listLectureCount(String chapterId, String keyword, String type);
@@ -220,20 +183,15 @@
 	/**
 	 * 璇句欢鍒楄〃鎼滅储
 	 *
-	 * @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);
 
 	/**
 	 * 璇句欢鍒楄〃鎼滅储
@@ -245,10 +203,8 @@
 	/**
 	 * 璇诲彇璇句欢鐪熷疄鏂囦欢璁块棶璺緞
 	 *
-	 * @param lectureId
-	 *            璇句欢id鏁扮粍
-	 * @param attribute
-	 *            璇句欢闄勫姞灞炴��
+	 * @param lectureId 璇句欢id鏁扮粍
+	 * @param attribute 璇句欢闄勫姞灞炴��
 	 * @return 涓婁紶缁撴灉:{"success":true,msg:"success",attrs:{"type":"",path:""}}
 	 */
 	Result readLectureAccessPath(String lectureId, String attribute);
@@ -262,6 +218,7 @@
 
 	/**
 	 * 璇句欢璇︽儏鏌ヨ
+	 *
 	 * @param learnerId
 	 * @param subjectId
 	 * @param keyword
@@ -271,5 +228,14 @@
 	 * @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);
+
+
 }

--
Gitblit v1.8.0