mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-08 02:16:49 +08:00
增加课程学习的接口
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
package com.xboe.module.course.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 课程学习的传输类
|
||||
* @author seastar
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
public class CourseStudyDto {
|
||||
|
||||
/**id,对于原系统是kid*/
|
||||
private String id;
|
||||
|
||||
/**es中的id*/
|
||||
private String esId;
|
||||
|
||||
private String accountId;
|
||||
|
||||
private String courseId;
|
||||
|
||||
/**课程类型,10无目录录播课,20 有目录录播课,30:面授课;40学习项目*/
|
||||
private Integer courseType;
|
||||
|
||||
private String courseName;
|
||||
|
||||
private String courseImage;
|
||||
|
||||
/**课程来源,1表老系统,2表学员端,3表管理端*/
|
||||
private Integer source;
|
||||
|
||||
/**报名时间,时间秒*/
|
||||
private Integer startTime;
|
||||
|
||||
/**状态,1表未开始,2表进行中,9表已完成*/
|
||||
private Integer status;
|
||||
|
||||
/**学习进度0-100的值*/
|
||||
private Integer progress;
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.xboe.module.course.service;
|
||||
|
||||
import com.xboe.module.course.dto.CourseStudyDto;
|
||||
|
||||
/**
|
||||
*
|
||||
* 课程学习查询
|
||||
* @author seastar
|
||||
*
|
||||
*/
|
||||
public interface ICourseStudySearch {
|
||||
|
||||
/**
|
||||
* 索引名称
|
||||
*/
|
||||
public static final String IndexName="";
|
||||
|
||||
/**
|
||||
* 创建索引
|
||||
* @param indexName
|
||||
*/
|
||||
void createIndex();
|
||||
|
||||
/**
|
||||
* 删除索引
|
||||
* @param indexName
|
||||
*/
|
||||
void deleteIndex();
|
||||
|
||||
/**
|
||||
* 发布学习课程
|
||||
* @param dto
|
||||
*/
|
||||
void publish(CourseStudyDto dto);
|
||||
|
||||
/**
|
||||
* 更新字段
|
||||
* @param field
|
||||
* @param value
|
||||
* @param docId
|
||||
* @throws Exception
|
||||
*/
|
||||
void updateFieldByDocId(String field,Object value, String docId) throws Exception;
|
||||
|
||||
/**
|
||||
* 移除课程
|
||||
* @param id
|
||||
* @throws Exception
|
||||
*/
|
||||
void removeByDocId(String id) throws Exception;
|
||||
}
|
||||
Reference in New Issue
Block a user