|
@@ -5,14 +5,13 @@ import com.github.pagehelper.PageInfo;
|
5
|
5
|
import com.xhkjedu.sstudy.model.question.TQuestion;
|
6
|
6
|
import com.xhkjedu.sstudy.model.question.TQuestionCollect;
|
7
|
7
|
import com.xhkjedu.sstudy.service.question.QuestionService;
|
|
8
|
+import com.xhkjedu.sstudy.vo.question.QuestionCollectVo;
|
|
9
|
+import com.xhkjedu.sstudy.vo.question.QuestionVo;
|
|
10
|
+import com.xhkjedu.sstudy.vo.system.CollectVo;
|
8
|
11
|
import com.xhkjedu.utils.N_Utils;
|
9
|
12
|
import com.xhkjedu.utils.PageUtil;
|
10
|
13
|
import com.xhkjedu.vo.PageResult;
|
11
|
14
|
import com.xhkjedu.vo.ResultVo;
|
12
|
|
-import com.xhkjedu.sstudy.vo.question.QuestionCollectVo;
|
13
|
|
-import com.xhkjedu.sstudy.vo.question.QuestionVo;
|
14
|
|
-import com.xhkjedu.sstudy.vo.question.SelectQuestionVo;
|
15
|
|
-import com.xhkjedu.sstudy.vo.system.CollectVo;
|
16
|
15
|
import org.springframework.util.CollectionUtils;
|
17
|
16
|
import org.springframework.web.bind.annotation.PostMapping;
|
18
|
17
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -101,7 +100,7 @@ public class QuestionController {
|
101
|
100
|
@PostMapping("/add")
|
102
|
101
|
public ResultVo add(@RequestBody TQuestion question) {
|
103
|
102
|
N_Utils.validation(new Object[]{
|
104
|
|
- question.getQstem(),"试题题干",2,question.getQlevel(),"试题类型",2
|
|
103
|
+ question.getQstem(),"试题题干",2,question.getQlevel(),"试题类型",1
|
105
|
104
|
,question.getScore(),"试题分值",1,question.getComplexity(),"试题难易度",1
|
106
|
105
|
,question.getQtypeid(),"试题题型id",2,question.getBelong(),"试题归属",1
|
107
|
106
|
});
|