|
|
@@ -1,7 +1,7 @@
|
|
|
package cn.seec.seecbok.controller;
|
|
|
|
|
|
+import cn.seec.seecbok.dto.PageDTO;
|
|
|
import cn.seec.seecbok.util.FakeQuestionData;
|
|
|
-import cn.seec.seecbok.vo.PageVO;
|
|
|
import cn.seec.seecbok.vo.PageableQuestionListVO;
|
|
|
import cn.seec.seecbok.vo.QuestionVO;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
@@ -19,26 +19,15 @@ public class QuestionController {
|
|
|
@GetMapping("")
|
|
|
@Operation(description = "获得题目列表")
|
|
|
public PageableQuestionListVO getQuestionList(
|
|
|
- @RequestParam(value = "id", required = false) @Parameter(description = "多id查找")
|
|
|
- List<String> id,
|
|
|
@RequestParam(value = "stem", required = false) @Parameter(description = "模糊查找题目")
|
|
|
String stem,
|
|
|
- @RequestParam(value = "size", required = false) @Parameter(description = "页面展示条数")
|
|
|
- Integer size,
|
|
|
- @RequestParam(value = "page", required = false) @Parameter(description = "当前页码")
|
|
|
- Integer page,
|
|
|
- @RequestParam(value = "sort", required = false) @Parameter(description = "排序方式")
|
|
|
- String sort) {
|
|
|
- return PageableQuestionListVO.builder()
|
|
|
- .questions(FakeQuestionData.buildList())
|
|
|
- .page(
|
|
|
- PageVO.builder()
|
|
|
- .size(size)
|
|
|
- .totalPages(205)
|
|
|
- .totalElements(1022)
|
|
|
- .number(page)
|
|
|
- .build())
|
|
|
- .build();
|
|
|
+ @RequestParam(value = "tag", required = false) @Parameter(description = "模糊查找题目")
|
|
|
+ List<String> tag,
|
|
|
+ @RequestParam(value = "knowledgeId", required = false)
|
|
|
+ @Parameter(description = "模糊查找题目")
|
|
|
+ List<String> knowledgeId,
|
|
|
+ PageDTO pageDTO) {
|
|
|
+ return FakeQuestionData.buildPageableList();
|
|
|
}
|
|
|
|
|
|
@PostMapping("")
|