|
@@ -129,8 +129,8 @@ public class QuestionInfoController extends BaseController{
|
|
*/
|
|
*/
|
|
@GetMapping(value = "/selectJxQustionInfo")
|
|
@GetMapping(value = "/selectJxQustionInfo")
|
|
@ApiOperation("获取精选题分类")
|
|
@ApiOperation("获取精选题分类")
|
|
- public List<QuestionInfoJxVO> selectJxQuestionInfo(@ModelAttribute QuestionInfoFlDTO questionInfoFlDTO) {
|
|
|
|
- return questionInfoService.selectJxQuestionInfo(questionInfoFlDTO);
|
|
|
|
|
|
+ public Response<List<QuestionInfoJxVO>> selectJxQuestionInfo(@ModelAttribute QuestionInfoFlDTO questionInfoFlDTO) {
|
|
|
|
+ return Response.success(questionInfoService.selectJxQuestionInfo(questionInfoFlDTO));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -139,8 +139,8 @@ public class QuestionInfoController extends BaseController{
|
|
*/
|
|
*/
|
|
@GetMapping(value = "/selectDfQustionInfo")
|
|
@GetMapping(value = "/selectDfQustionInfo")
|
|
@ApiOperation("获取地方题分类")
|
|
@ApiOperation("获取地方题分类")
|
|
- public List<QuestionInfoDfVO> selectDfQuestionInfo(@ModelAttribute QuestionInfoFlDTO questionInfoFlDTO) {
|
|
|
|
- return questionInfoService.selectDfQuestionInfo(questionInfoFlDTO);
|
|
|
|
|
|
+ public Response<List<QuestionInfoDfVO>> selectDfQuestionInfo(@ModelAttribute QuestionInfoFlDTO questionInfoFlDTO) {
|
|
|
|
+ return Response.success(questionInfoService.selectDfQuestionInfo(questionInfoFlDTO));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -148,8 +148,8 @@ public class QuestionInfoController extends BaseController{
|
|
*/
|
|
*/
|
|
@GetMapping(value = "/selectFlQustionInfo")
|
|
@GetMapping(value = "/selectFlQustionInfo")
|
|
@ApiOperation("获取分类专题分类")
|
|
@ApiOperation("获取分类专题分类")
|
|
- public List<QuestionInfoFlVO> selectFlQuestionInfo(@ModelAttribute QuestionInfoFlDTO questionInfoFlDTO) {
|
|
|
|
- return questionInfoService.selectFlQuestionInfo(questionInfoFlDTO);
|
|
|
|
|
|
+ public Response<List<QuestionInfoFlVO>> selectFlQuestionInfo(@ModelAttribute QuestionInfoFlDTO questionInfoFlDTO) {
|
|
|
|
+ return Response.success(questionInfoService.selectFlQuestionInfo(questionInfoFlDTO));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -184,5 +184,16 @@ public class QuestionInfoController extends BaseController{
|
|
List<QuestionInfo> list = questionInfoService.selectTestQuestionInfo(questionInfoTestDTO);
|
|
List<QuestionInfo> list = questionInfoService.selectTestQuestionInfo(questionInfoTestDTO);
|
|
return toResponsePageInfo(list);
|
|
return toResponsePageInfo(list);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 查询模拟考试题库
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/selectFreeQuestionInfo")
|
|
|
|
+ @ApiOperation("查询免费题库")
|
|
|
|
+ public ResponsePageInfo<QuestionInfo> selectFreeQuestionInfo(){
|
|
|
|
+ List<QuestionInfo> list = questionInfoService.selectFreeQuestionInfo();
|
|
|
|
+ return toResponsePageInfo(list);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|