|
|
@@ -1,6 +1,8 @@
|
|
|
package com.ruoyi.web.controller.learn;
|
|
|
|
|
|
+import cn.hutool.core.lang.Dict;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
+import com.google.common.collect.Lists;
|
|
|
import com.ruoyi.common.annotation.Anonymous;
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
@@ -125,6 +127,18 @@ public class LearnTeacherController extends BaseController {
|
|
|
return AjaxResult.success(learnTeacherService.getKnowledgeTree(subjectId, majorPlanIds));
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/questionTypes")
|
|
|
+ @ApiOperation("题型列表")
|
|
|
+ public AjaxResult questionTypes(@ApiParam("科目ID") Long subjectId, @RequestParam(required = false) @ApiParam("专业计划ID") Long[] knowledgeIds)
|
|
|
+ {
|
|
|
+ List<Dict> dictList = Lists.newArrayList();
|
|
|
+ dictList.add(Dict.create().set("dictLabel", "单选题").set("dictValue", "1"));
|
|
|
+ dictList.add(Dict.create().set("dictLabel", "多选题").set("dictValue", "2"));
|
|
|
+ dictList.add(Dict.create().set("dictLabel", "判断题").set("dictValue", "3"));
|
|
|
+ dictList.add(Dict.create().set("dictLabel", "分析题").set("dictValue", "4"));
|
|
|
+ return AjaxResult.success(dictList);
|
|
|
+ }
|
|
|
+
|
|
|
@PreAuthorize("@ss.hasPermi('learn:test_paper:add')")
|
|
|
@PostMapping("/build/auto")
|
|
|
@ApiOperation("批量自动组卷")
|