增加课程学习的接口

This commit is contained in:
daihh
2023-01-06 19:49:49 +08:00
parent c0f93ae88b
commit ba79b7b2c4
2 changed files with 92 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -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;
}