From 2347d504146349e5c616d1a84fe81d8cafaf3ff8 Mon Sep 17 00:00:00 2001 From: daihh Date: Sat, 7 Jan 2023 11:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E5=AD=A6=E4=B9=A0=E7=9A=84ES?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../course/service/ICourseStudySearch.java | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/modules/boe-module-course/src/main/java/com/xboe/module/course/service/ICourseStudySearch.java b/modules/boe-module-course/src/main/java/com/xboe/module/course/service/ICourseStudySearch.java index aaea0a9d..d70f41f8 100644 --- a/modules/boe-module-course/src/main/java/com/xboe/module/course/service/ICourseStudySearch.java +++ b/modules/boe-module-course/src/main/java/com/xboe/module/course/service/ICourseStudySearch.java @@ -1,5 +1,8 @@ package com.xboe.module.course.service; +import java.io.IOException; + +import com.xboe.common.PageList; import com.xboe.module.course.dto.CourseStudyDto; /** @@ -11,15 +14,15 @@ import com.xboe.module.course.dto.CourseStudyDto; public interface ICourseStudySearch { /** - * 索引名称 + * 索引名称,固定的值 */ - public static final String IndexName=""; + public static final String IndexName="new_study_resource"; /** * 创建索引 * @param indexName */ - void createIndex(); + void createIndex() throws Exception; /** * 删除索引 @@ -28,10 +31,21 @@ public interface ICourseStudySearch { void deleteIndex(); /** - * 发布学习课程 + * 发布学习课程,如果存在就更新,不存在就添加 * @param dto + * @param docId */ - void publish(CourseStudyDto dto); + String publishOrUpdate(CourseStudyDto dto,String docId) throws IOException; + + /** + * 分页查询 + * @param startRow + * @param pageSize + * @param dto + * @return + * @throws Exception + */ + PageList search(int startRow, int pageSize, CourseStudyDto dto) throws Exception; /** * 更新字段