|
|
@@ -0,0 +1,59 @@
|
|
|
+package com.zhongzheng.controller.bank;
|
|
|
+
|
|
|
+import com.zhongzheng.common.annotation.Log;
|
|
|
+import com.zhongzheng.common.core.controller.BaseController;
|
|
|
+import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
+import com.zhongzheng.common.core.page.TableDataInfo;
|
|
|
+import com.zhongzheng.common.enums.BusinessType;
|
|
|
+import com.zhongzheng.modules.bank.bo.QuestionDetailAddBo;
|
|
|
+import com.zhongzheng.modules.bank.bo.QuestionDetailEditBo;
|
|
|
+import com.zhongzheng.modules.bank.bo.QuestionDetailQueryBo;
|
|
|
+import com.zhongzheng.modules.bank.service.IQuestionDetailService;
|
|
|
+import com.zhongzheng.modules.bank.vo.QuestionDetailVo;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.Arrays;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 题目详情Controller
|
|
|
+ *
|
|
|
+ * @author hjl
|
|
|
+ * @date 2021-05-20
|
|
|
+ */
|
|
|
+@Api(value = "题目详情控制器", tags = {"题目详情管理"})
|
|
|
+@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
+@RestController
|
|
|
+@RequestMapping("/question/detail")
|
|
|
+public class QuestionDetailController extends BaseController {
|
|
|
+
|
|
|
+ private final IQuestionDetailService iQuestionDetailService;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 查询题目详情列表
|
|
|
+ */
|
|
|
+ @ApiOperation("查询题目详情列表")
|
|
|
+ @GetMapping("/list")
|
|
|
+ public TableDataInfo<QuestionDetailVo> list(QuestionDetailQueryBo bo) {
|
|
|
+ startPage();
|
|
|
+ List<QuestionDetailVo> list = iQuestionDetailService.queryList(bo);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取题目详情详细信息
|
|
|
+ */
|
|
|
+ @ApiOperation("获取题目详情详细信息")
|
|
|
+ @GetMapping("/{questionDetailId}")
|
|
|
+ public AjaxResult<QuestionDetailVo> getInfo(@PathVariable("questionDetailId" ) Long questionDetailId) {
|
|
|
+ return AjaxResult.success(iQuestionDetailService.queryById(questionDetailId));
|
|
|
+ }
|
|
|
+
|
|
|
+}
|