package com.qxueyou.scc.teach.subject.service;
|
|
import java.util.List;
|
|
import com.qxueyou.scc.admin.progress.model.view.SubjectProgressTreeV;
|
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;
|
|
public interface ILectureService {
|
|
/**
|
* ÐÂÔöÕ½ÚÎļþ¼Ð
|
*
|
* @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
|
* @return
|
*/
|
SubjectChapter readChapter(String chapterId);
|
|
/**
|
* ÐÞ¸ÄÕ½ÚÎļþ¼Ð
|
*
|
* @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 subjectId
|
* ¿Î³Ìid
|
* @param parentChapterId
|
* ¸¸¼¶Õ½ÚÎļþ¼Ðid
|
* @return ·µ»ØÕ½ÚÁбí
|
*/
|
List<SubjectChapter> doGetListChapter(String subjectId, String parentChapterId);
|
|
/**
|
* ·µ»ØÏ¼¶Õ½ÚÎļþ¼ÐÁбí,Èç¹û
|
*
|
* @param subjectId
|
* ¿Î³Ìid
|
* @param parentChapterId
|
* ¸¸¼¶Õ½ÚÎļþ¼Ðid
|
* @return ·µ»ØÕ½ÚÁбí
|
*/
|
List<SubjectProgressTreeV> getChapterTreeVList(String subjectId, String parentChapterId);
|
|
/**
|
* ·µ»ØÏ¼¶Õ½ÚÎļþ¼ÐÁбí
|
*
|
* @param subjectId
|
* ¿Î³Ìid
|
* @param parentChapterId
|
* ¸¸¼¶Õ½ÚÎļþ¼Ðid
|
* @return ·µ»ØÕ½ÚÁбí
|
*/
|
List<SubjectChapter> getListChapter(String subjectId, String parentChapterId);
|
|
/**
|
* ·µ»ØËùÓÐÕ½ÚÁÐ±í£¬°´createTimeÅÅÐò
|
*
|
* @param subjectId
|
* ¿Î³Ìid
|
* @return ·µ»ØÕ½ÚÁбí
|
*/
|
List<SubjectChapter> getAllChapterBySubjectId(String subjectId);
|
|
/**
|
* ÐÂÔö¿Î¼þ
|
*
|
* @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);
|
/**
|
* ¶ÁÈ¡¿Î¼þ
|
*
|
* @param lectureId
|
* ¿Î¼þid
|
* @return SubjectLecture
|
*/
|
SubjectLecture readLecture(String lectureId);
|
|
/**
|
* ¶ÁÈ¡ÊÓÆµ¿Î¼þ
|
*
|
* @param lectureId
|
* ¿Î¼þid
|
* @return SubjectLecture
|
*/
|
LectureVideoV readVideoLecture(String lectureId);
|
|
/**
|
* ¶ÁÈ¡ÒôƵ¿Î¼þ
|
*
|
* @param lectureId
|
* ¿Î¼þid
|
* @return LectureAudioV
|
*/
|
LectureAudioV readAudioLecture(String lectureId);
|
|
/**
|
* Ð޸Ŀμþ
|
*
|
* @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);
|
|
Result deleteLectureLoad(String[] lectureIds);
|
|
/**
|
* ¸´Öƿμþ
|
*
|
* @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 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
|
* ÀàÐÍ
|
* @return
|
*/
|
int listLectureCount(String chapterId, String keyword, String 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);
|
|
/**
|
* ¿Î¼þÁбíËÑË÷
|
*
|
* @return
|
*/
|
List<SubjectLecture> listLectureBySubjectId(String subjectId);
|
|
/**
|
* ¶ÁÈ¡¿Î¼þÕæÊµÎļþ·ÃÎÊ·¾¶
|
*
|
* @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);
|
}
|