|
@@ -11,7 +11,6 @@ import com.miaxis.question.service.IQuestionInfoService;
|
|
import com.miaxis.question.vo.*;
|
|
import com.miaxis.question.vo.*;
|
|
import io.swagger.annotations.*;
|
|
import io.swagger.annotations.*;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -30,10 +29,10 @@ public class PcQuestionInfoController extends BaseController{
|
|
private IQuestionInfoService questionInfoService;
|
|
private IQuestionInfoService questionInfoService;
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 查询题库列表
|
|
|
|
|
|
+ * 后台-查询题库列表
|
|
*/
|
|
*/
|
|
@GetMapping("/list")
|
|
@GetMapping("/list")
|
|
- @ApiOperation("查询题库列表")
|
|
|
|
|
|
+ @ApiOperation("后台-查询题库列表")
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParams({
|
|
@ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
|
|
@ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
|
|
@ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
|
|
@ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
|
|
@@ -68,7 +67,20 @@ public class PcQuestionInfoController extends BaseController{
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 取题查询题库列表
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/qlist")
|
|
|
|
+ @ApiOperation("取题查询题库列表")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "pageNum",value = "当前页码" ,dataType = "int", paramType = "query", required = false),
|
|
|
|
+ @ApiImplicitParam(name = "pageSize",value = "每页数据量" , dataType = "int", paramType = "query", required = false),
|
|
|
|
+ })
|
|
|
|
+ public ResponsePageInfo<QuestionInfo> qlist(@ModelAttribute QuestionInfoDTO questionInfoDTO){
|
|
|
|
+ startPage();
|
|
|
|
+ List<QuestionInfo> list = questionInfoService.selectQuestionInfoList(questionInfoDTO);
|
|
|
|
+ return toResponsePageInfo(list);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -200,17 +212,6 @@ public class PcQuestionInfoController extends BaseController{
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- /**
|
|
|
|
- * 查询题库列表(非会员)
|
|
|
|
- */
|
|
|
|
- @GetMapping("/normalList")
|
|
|
|
- @ApiOperation("查询题库列表(非会员)")
|
|
|
|
- public ResponsePageInfo<QuestionInfo> normalList(@ModelAttribute QuestionInfoDTO questionInfoDTO){
|
|
|
|
- List<QuestionInfo> list = questionInfoService.selectNormalQuestionInfoList(questionInfoDTO);
|
|
|
|
- return toResponsePageInfo(list);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
/**
|