diff --git a/web/src/main/java/com/ibeetl/jlw/entity/dto/TeacherOpenCourseChatLogStudentDTO.java b/web/src/main/java/com/ibeetl/jlw/entity/dto/TeacherOpenCourseChatLogStudentDTO.java new file mode 100644 index 00000000..36c0afcf --- /dev/null +++ b/web/src/main/java/com/ibeetl/jlw/entity/dto/TeacherOpenCourseChatLogStudentDTO.java @@ -0,0 +1,46 @@ +package com.ibeetl.jlw.entity.dto; + +import com.ibeetl.jlw.enums.ChatLogSendTypeEnum; +import lombok.Builder; +import lombok.Data; +import lombok.experimental.Accessors; + +import javax.validation.constraints.NotNull; + +/** + *开课互动查询 + */ +@Data +@Builder +@Accessors(chain = true) +public class TeacherOpenCourseChatLogStudentDTO { + + /** + * 上级ID + */ + private Long teacherOpenCourseChatLogParentId; + /** + * 课程开课ID + */ + @NotNull(message = "开课ID不能为空!") + private Long teacherOpenCourseId; + /** + * 讨论内容 + */ + @NotNull(message = "开课ID不能为空!") + private String chatContent; + /** + * 关键字(多个逗号隔开) + */ + private String keywords; + /** + * 提问方式 + */ + @NotNull(message = "提问方式不能为空!") + private ChatLogSendTypeEnum chatLogSendType; + /** + * 附件上传(仅支持图片,多个逗号隔开) + */ + private String chatFiles; + +} diff --git a/web/src/main/java/com/ibeetl/jlw/entity/dto/TeacherOpenCourseChatLogTeacherDTO.java b/web/src/main/java/com/ibeetl/jlw/entity/dto/TeacherOpenCourseChatLogTeacherDTO.java new file mode 100644 index 00000000..a823d388 --- /dev/null +++ b/web/src/main/java/com/ibeetl/jlw/entity/dto/TeacherOpenCourseChatLogTeacherDTO.java @@ -0,0 +1,50 @@ +package com.ibeetl.jlw.entity.dto; + +import com.ibeetl.jlw.enums.ChatLogSendTypeEnum; +import lombok.Builder; +import lombok.Data; +import lombok.experimental.Accessors; + +import javax.validation.constraints.NotNull; + +/** + *开课互动查询 + */ +@Data +@Builder +@Accessors(chain = true) +public class TeacherOpenCourseChatLogTeacherDTO { + + /** + * 上级ID + */ + private Long teacherOpenCourseChatLogParentId; + /** + * 课程开课ID + */ + @NotNull(message = "开课ID不能为空!") + private Long teacherOpenCourseId; + /** + * 班级ID集合 + */ + private String schoolClassIds; + /** + * 讨论内容 + */ + @NotNull(message = "讨论内容不能为空!") + private String chatContent; + /** + * 关键字(多个逗号隔开) + */ + private String keywords; + /** + * 提问方式 + */ + @NotNull(message = "提问方式不能为空!") + private ChatLogSendTypeEnum chatLogSendType; + /** + * 附件上传(仅支持图片,多个逗号隔开) + */ + private String chatFiles; + +} diff --git a/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseChatLogService.java b/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseChatLogService.java index 3e5607df..65fa31a7 100644 --- a/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseChatLogService.java +++ b/web/src/main/java/com/ibeetl/jlw/service/TeacherOpenCourseChatLogService.java @@ -97,7 +97,6 @@ public class TeacherOpenCourseChatLogService extends CoreBaseService