| | |
| | | package com.mindskip.xzs.viewmodel.admin.question; |
| | | |
| | | |
| | | import com.mindskip.xzs.domain.QuestionSubject; |
| | | import org.hibernate.validator.constraints.Range; |
| | | |
| | | import javax.validation.Valid; |
| | |
| | | public class QuestionEditRequestVM { |
| | | |
| | | private Integer id; |
| | | // 1:单选 |
| | | |
| | | /** 题型 */ |
| | | @NotNull |
| | | private Integer questionType; |
| | | // 年级学科表 |
| | | @NotNull |
| | | |
| | | /** 课目 */ |
| | | private Integer subjectId; |
| | | //题干 |
| | | |
| | | /** 题干 */ |
| | | @NotBlank |
| | | private String title; |
| | | |
| | | /** 部门ID */ |
| | | private List<Integer> deptIds; |
| | | |
| | | private String sbNames; |
| | | |
| | | private Integer gradeLevel; |
| | | //答案 |
| | | |
| | | /** 答案 */ |
| | | @Valid |
| | | private List<QuestionEditItemVM> items; |
| | | //解析 |
| | | @NotBlank |
| | | |
| | | /** 解析 */ |
| | | private String analyze; |
| | | |
| | | //多项选择题答案 |
| | | /** 多选题答案 */ |
| | | private List<String> correctArray; |
| | | //答案 |
| | | |
| | | /** 答案 */ |
| | | private String correct; |
| | | //分数 |
| | | |
| | | /** 题目分数 */ |
| | | @NotBlank |
| | | private String score; |
| | | //难度 |
| | | |
| | | /** 题目难度 */ |
| | | @Range(min = 1, max = 5, message = "请选择题目难度") |
| | | private Integer difficult; |
| | | |
| | | private Integer itemOrder; |
| | | |
| | | private String department; |
| | | |
| | | private List<QuestionSubject> questionSubjects; |
| | | |
| | | |
| | | private String a; |
| | |
| | | private String c; |
| | | private String d; |
| | | |
| | | public List<Integer> getDeptIds() { |
| | | return deptIds; |
| | | } |
| | | |
| | | public void setDeptIds(List<Integer> deptIds) { |
| | | this.deptIds = deptIds; |
| | | } |
| | | |
| | | public String getDepartment() { |
| | | return department; |
| | | } |
| | | |
| | | public void setDepartment(String department) { |
| | | this.department = department; |
| | | } |
| | | |
| | | public List<QuestionSubject> getQuestionSubjects() { |
| | | return questionSubjects; |
| | | } |
| | | |
| | | public void setQuestionSubjects(List<QuestionSubject> questionSubjects) { |
| | | this.questionSubjects = questionSubjects; |
| | | } |
| | | |
| | | public String getSbNames() { |
| | | return sbNames; |
| | | } |
| | | |
| | | public void setSbNames(String sbNames) { |
| | | this.sbNames = sbNames; |
| | | } |
| | | |
| | | private Integer[] subjectIds; |
| | | |
| | | public Integer[] getSubjectIds() { |
| | | return subjectIds; |
| | | } |
| | | |
| | | public void setSubjectIds(Integer[] subjectIds) { |
| | | this.subjectIds = subjectIds; |
| | | } |
| | | |
| | | public String getA() { |
| | | return a; |
| | | } |