|
|
@ -5,6 +5,7 @@ import com.ibeetl.admin.core.annotation.Query;
|
|
|
|
import com.ibeetl.admin.core.web.query.PageParam;
|
|
|
|
import com.ibeetl.admin.core.web.query.PageParam;
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseChatLog;
|
|
|
|
import com.ibeetl.jlw.entity.TeacherOpenCourseChatLog;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.Min;
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import javax.validation.constraints.NotNull;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
@ -14,22 +15,34 @@ import java.util.Date;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class TeacherOpenCourseChatLogQuery extends PageParam {
|
|
|
|
public class TeacherOpenCourseChatLogQuery extends PageParam {
|
|
|
|
|
|
|
|
|
|
|
|
@NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 教师添加验证
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static interface TEACHER_ADD {}
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 学生添加验证
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public static interface STUDENT_ADD {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@NotNull(message = "ID不能为空", groups ={ValidateConfig.UPDATE.class})
|
|
|
|
@Query(name = "课程开课--讨论-日志ID", display = false)
|
|
|
|
@Query(name = "课程开课--讨论-日志ID", display = false)
|
|
|
|
private Long teacherOpenCourseChatLogId;
|
|
|
|
private Long teacherOpenCourseChatLogId;
|
|
|
|
|
|
|
|
@NotNull(message = "上级ID不能为空", groups ={ STUDENT_ADD.class })
|
|
|
|
|
|
|
|
@Min(value = 1L, message = "学生互动上级ID最小支持:1L", groups = { STUDENT_ADD.class })
|
|
|
|
@Query(name = "上级ID", display = false)
|
|
|
|
@Query(name = "上级ID", display = false)
|
|
|
|
private Long teacherOpenCourseChatLogParentId;
|
|
|
|
private Long teacherOpenCourseChatLogParentId;
|
|
|
|
@NotNull(message = "课程开课ID不能为空", groups =ValidateConfig.ADD.class)
|
|
|
|
@NotNull(message = "课程开课ID不能为空", groups ={ ValidateConfig.ADD.class, TEACHER_ADD.class, STUDENT_ADD.class })
|
|
|
|
@Query(name = "课程开课ID", display = true,type=Query.TYPE_DICT,dict="teacher_open_course.teacher_open_course_title.teacher_open_course_status=1")
|
|
|
|
@Query(name = "课程开课ID", display = true,type=Query.TYPE_DICT,dict="teacher_open_course.teacher_open_course_title.teacher_open_course_status=1")
|
|
|
|
private Long teacherOpenCourseId;
|
|
|
|
private Long teacherOpenCourseId;
|
|
|
|
@Query(name = "班级ID集合", display = false)
|
|
|
|
@Query(name = "班级ID集合", display = false)
|
|
|
|
private String schoolClassIds;
|
|
|
|
private String schoolClassIds;
|
|
|
|
@NotNull(message = "教师ID不能为空", groups =ValidateConfig.ADD.class)
|
|
|
|
@NotNull(message = "教师ID不能为空", groups ={ ValidateConfig.ADD.class, TEACHER_ADD.class })
|
|
|
|
@Query(name = "教师ID", display = true,type=Query.TYPE_DICT,dict="teacher.teacher_name.teacher_status=1")
|
|
|
|
@Query(name = "教师ID", display = true,type=Query.TYPE_DICT,dict="teacher.teacher_name.teacher_status=1")
|
|
|
|
private Long teacherId;
|
|
|
|
private Long teacherId;
|
|
|
|
|
|
|
|
@NotNull(message = "学生ID不能为空", groups ={ ValidateConfig.ADD.class, STUDENT_ADD.class })
|
|
|
|
@Query(name = "学生ID", display = true,type=Query.TYPE_DICT,dict="student.student_name.student_status=1")
|
|
|
|
@Query(name = "学生ID", display = true,type=Query.TYPE_DICT,dict="student.student_name.student_status=1")
|
|
|
|
private Long studentId;
|
|
|
|
private Long studentId;
|
|
|
|
@NotNull(message = "讨论内容不能为空", groups =ValidateConfig.ADD.class)
|
|
|
|
@NotNull(message = "讨论内容不能为空", groups ={ ValidateConfig.ADD.class, TEACHER_ADD.class, STUDENT_ADD.class })
|
|
|
|
@Query(name = "讨论内容", display = false)
|
|
|
|
@Query(name = "讨论内容", display = false)
|
|
|
|
private String chatContent;
|
|
|
|
private String chatContent;
|
|
|
|
@Query(name = "关键字(多个逗号隔开)", display = false)
|
|
|
|
@Query(name = "关键字(多个逗号隔开)", display = false)
|
|
|
|