| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- package cn.iselab.mooctest.site.service;
- import cn.iselab.mooctest.site.common.enums.EntityTypeEnum;
- import cn.iselab.mooctest.site.models.*;
- import cn.iselab.mooctest.site.web.data.CourseVO;
- import cn.iselab.mooctest.site.web.data.ThemeDetailVO;
- import org.springframework.data.domain.Page;
- import org.springframework.data.domain.Pageable;
- import java.util.List;
- import java.util.Map;
- /**
- * @program: mooctest-site
- * @mail: menduo96@gmail.com
- * @author: menduo
- * @create: 2019-04-23 13:16
- **/
- public interface ThemeService {
- ThemeDetail createThemeDetail(ThemeDetail themeDetail);
- ThemeDetail updateThemeDetail(ThemeDetail themeDetail);
- ThemeDetail deleteThemeDetailById(long id);
- ThemeDetail getThemeDetailById(long id);
- Page<ThemeDetail> getThemeDetails(Pageable pageable);
- Page<ThemeDetail> getThemeDetails(Pageable pageable, String keyword, int type);
- Page<ThemeDetail> getThemeDetailsByOwnerId(Long ownerId, String keyword, Pageable pageable);
- Page<CourseResource> getThemeCourseResources(Pageable pageable, String keyword);
- List<CourseResource> getCourseResources();
- List<ThemeDetail> getThemeDetailList();
- List<ThemeDetail> getThemeDetailByIds(Long[] ids);
- List<ThemeDetail> getThemeDetailByIdList(List<Long> ids);
- List<ThemeDetail> getThemeDetailListByOwnerId(Long ownerId);
- List<ThemeEntityRelations> getThemeEntityRelations(long themeId);
- List<ThemeEntityRelations> getThemeEntityRelations(long themeId, EntityTypeEnum entityTypeEnum);
- List<ThemeEntityRelations> getThemeEntityRelationsByEntityId(long entityId, EntityTypeEnum entityTypeEnum);
- ThemeEntityRelations createRelationBetweenThemeAndEntity(long themeId, long caseId, EntityTypeEnum entityTypeEnum);
- boolean deleteEntityRelationByThemeId(Long themeId);
- boolean deleteRelationBetweenThemeAndEntity(long themeId, long caseId, EntityTypeEnum entityTypeEnum);
- ThemeEntityRelations checkRelationBetweenThemeAndEntity(long themeId, long entityId, EntityTypeEnum entityTypeEnum);
- ThemeEntityRelations addEntity(ThemeEntityRelations themeEntityRelations);
- void rmEntity(long id);
- ThemeEntityRelations createEntityRelation(long themeId, long entityId, EntityTypeEnum entityType, int sortId, boolean previewable);
- void createStudyViewRecord(Long themeId, Long courseId, Long userId, EntityTypeEnum entityType);
- int getStudyRecord(Long themeId, List<Long> studentIds, EntityTypeEnum entityType);
- StudyRecord getStudyRecordByThemeId(Long themeId, Long courseId, Long userId, EntityTypeEnum entityType);
- List<StudyRecord> getStudyCompletenessByThemeId(Long themeId, Long userId, EntityTypeEnum entityType);
- Integer updateStatus(ThemeDetail themeDetail);
- ThemeEntityRelations createEntityRelation(long themeId, long entityId, EntityTypeEnum entityType);
- List<ThemeDetail> getPlatformThemeDetails();
- List<ThemeDetail> getCourseByParticipant(Long participantId);
- Page<ParticipantCourse> getCourseByParticipant(Long userId, Map<String, String> extraCondition, String keyword, Pageable pageable);
- Page<OperationCourse> getOperationCourseList(Pageable pageable, Long userId, Long ownerId, String operation, Map<String, String> extraCondition, String keyword);
- List<OperationCourse> getOperationCourseList(Long userId, String operation);
- boolean isUserJoinCourse(Long courseId, Long participantId);
- Page<ThemeDetail> getPlatformThemeDetails(Map<String, String> extraCondition, Map<String, String> excludeCondition, Pageable pageable, String keyword);
- }
|