|
@@ -4,6 +4,8 @@ import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import com.ruoyi.sim.service.impl.RealExamCollectionService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -26,19 +28,18 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
* 考试集合Controller
|
|
|
*
|
|
|
* @author tom
|
|
|
- * @date 2024-12-13
|
|
|
+ * @date 2024-12-17
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/sim/real-exam-collection")
|
|
|
+@Api("考试集合Controller")
|
|
|
public class RealExamCollectionController extends BaseController {
|
|
|
@Autowired
|
|
|
private RealExamCollectionService realExamCollectionService;
|
|
|
|
|
|
- /**
|
|
|
- * 查询考试集合列表
|
|
|
- */
|
|
|
- @PreAuthorize("@ss.hasPermi('sim:real-exam-collection:list')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:real-exam-collection:list')")
|
|
|
@GetMapping("/list")
|
|
|
+ @ApiOperation("查询考试集合列表")
|
|
|
public TableDataInfo list(RealExamCollection realExamCollection) {
|
|
|
startPage();
|
|
|
List<RealExamCollection> list = realExamCollectionService.selectRealExamCollectionList(realExamCollection);
|
|
@@ -60,8 +61,9 @@ public class RealExamCollectionController extends BaseController {
|
|
|
/**
|
|
|
* 获取考试集合详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('sim:real-exam-collection:query')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('sim:real-exam-collection:query')")
|
|
|
@GetMapping(value = "/{examCollectionId}")
|
|
|
+ @ApiOperation("获取考试集合详细信息")
|
|
|
public AjaxResult getInfo(@PathVariable("examCollectionId") Long examCollectionId) {
|
|
|
return success(realExamCollectionService.selectRealExamCollectionByExamCollectionId(examCollectionId));
|
|
|
}
|