|
@@ -12,6 +12,7 @@ import com.zhongzheng.modules.collect.bo.CollectQuestionAddBo;
|
|
|
import com.zhongzheng.modules.collect.bo.CollectQuestionQueryBo;
|
|
|
import com.zhongzheng.modules.collect.domain.CollectQuestion;
|
|
|
import com.zhongzheng.modules.collect.service.ICollectQuestionService;
|
|
|
+import com.zhongzheng.modules.collect.vo.CollectQuestionVo;
|
|
|
import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -43,23 +44,33 @@ public class CollectQuestionController extends BaseController {
|
|
|
*/
|
|
|
@ApiOperation("查询收藏题目列表,按题型")
|
|
|
@GetMapping("/list")
|
|
|
- public TableDataInfo<QuestionVo> list(CollectQuestionQueryBo bo) {
|
|
|
+ public TableDataInfo<CollectQuestionVo> list(CollectQuestionQueryBo bo) {
|
|
|
ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
bo.setUserId(loginUser.getUser().getUserId());
|
|
|
startPage();
|
|
|
- List<QuestionVo> list = iCollectQuestionService.selectList(bo);
|
|
|
+ List<CollectQuestionVo> list = iCollectQuestionService.selectList(bo);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
/**
|
|
|
* 查询收藏题目列表
|
|
|
*/
|
|
|
- @ApiOperation("查询收藏题目列表,按试卷")
|
|
|
+ @ApiOperation("查询收藏列表,按试卷")
|
|
|
@GetMapping("/exam_list")
|
|
|
- public TableDataInfo<QuestionVo> exam_list(CollectQuestionQueryBo bo) {
|
|
|
+ public TableDataInfo<CollectQuestionVo> exam_list(CollectQuestionQueryBo bo) {
|
|
|
ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
bo.setUserId(loginUser.getUser().getUserId());
|
|
|
startPage();
|
|
|
- List<QuestionVo> list = iCollectQuestionService.selectExamList(bo);
|
|
|
+ List<CollectQuestionVo> list = iCollectQuestionService.selectExamList(bo);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("按试卷获取收藏题目列表详情")
|
|
|
+ @GetMapping("/exam_question_list")
|
|
|
+ public TableDataInfo<QuestionVo> exam_question_list(CollectQuestionQueryBo bo) {
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
|
+ startPage();
|
|
|
+ List<QuestionVo> list = iCollectQuestionService.selectExamQuestionList(bo);
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|