|
|
|
@ -32,6 +32,7 @@ import org.springframework.validation.BindingResult;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
@ -583,13 +584,13 @@ public class ResourcesQuestionController{
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询题目类型下的题目数量
|
|
|
|
|
* @param courseId
|
|
|
|
|
* @param courseId 非必传
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping(MODEL + "/getGroupQuestionTypeCount.json")
|
|
|
|
|
@Function("resourcesQuestion.query")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public JsonResult<List<QuestionTypeCountVO>> getGroupQuestionTypeCount(Long courseId) {
|
|
|
|
|
public JsonResult<List<QuestionTypeCountVO>> getGroupQuestionTypeCount(@RequestParam(required = false) Long courseId) {
|
|
|
|
|
return JsonResult.success(resourcesQuestionService.getGroupQuestionTypeCount(courseId));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|