|
|
@ -3,17 +3,23 @@ package com.ruoyi.web.controller.exam;
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.exam.dto.ExamDTO;
|
|
|
|
import com.ruoyi.system.domain.paper.dto.request.PaperAnswerDTO;
|
|
|
|
import com.ruoyi.system.domain.paper.dto.request.PaperAnswerDTO;
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.paper.dto.request.PaperListReqDTO;
|
|
|
|
import com.ruoyi.system.domain.paper.dto.request.PaperQuQueryDTO;
|
|
|
|
import com.ruoyi.system.domain.paper.dto.request.PaperQuQueryDTO;
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.paper.dto.response.PaperListRespDTO;
|
|
|
|
import com.ruoyi.web.controller.manager.PaperManager;
|
|
|
|
import com.ruoyi.web.controller.manager.PaperManager;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* packageName com.ruoyi.web.controller.examination
|
|
|
|
* packageName com.ruoyi.web.controller.examination
|
|
|
@ -34,6 +40,17 @@ public class PaperController extends BaseController {
|
|
|
|
private PaperManager paperManager;
|
|
|
|
private PaperManager paperManager;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("在线考试")
|
|
|
|
|
|
|
|
@PostMapping("/list")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public TableDataInfo list(PaperListReqDTO paperListReqDTO) {
|
|
|
|
|
|
|
|
startPage();
|
|
|
|
|
|
|
|
List<PaperListRespDTO> list = paperManager.paging(paperListReqDTO);
|
|
|
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("创建试卷")
|
|
|
|
@ApiOperation("创建试卷")
|
|
|
|
@Log(title = "创建试卷", businessType = BusinessType.INSERT)
|
|
|
|
@Log(title = "创建试卷", businessType = BusinessType.INSERT)
|
|
|
|
@GetMapping("/create/{examId}")
|
|
|
|
@GetMapping("/create/{examId}")
|
|
|
|