Bladeren bron

查询考试集合列表。

tom 5 maanden geleden
bovenliggende
commit
e610f6fb0e

+ 8 - 6
ruoyi-sim/src/main/java/com/ruoyi/sim/controller/RealExamCollectionController.java

@@ -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));
     }

+ 1 - 1
ruoyi-sim/src/main/java/com/ruoyi/sim/domain/RealExamCollection.java

@@ -12,7 +12,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
  * 考试集合对象 sim_real_exam_collection
  *
  * @author tom
- * @date 2024-12-13
+ * @date 2024-12-17
  */
 public class RealExamCollection extends BaseEntity {
     private static final long serialVersionUID = 1L;

+ 1 - 1
ruoyi-sim/src/main/java/com/ruoyi/sim/mapper/RealExamCollectionMapper.java

@@ -8,7 +8,7 @@ import com.ruoyi.sim.domain.RealExamCollection;
  * 考试集合Mapper接口
  *
  * @author tom
- * @date 2024-12-13
+ * @date 2024-12-17
  */
 public interface RealExamCollectionMapper {
     /**

+ 1 - 1
ruoyi-sim/src/main/java/com/ruoyi/sim/service/impl/RealExamCollectionService.java

@@ -12,7 +12,7 @@ import com.ruoyi.sim.domain.RealExamCollection;
  * 考试集合Service业务层处理
  *
  * @author tom
- * @date 2024-12-13
+ * @date 2024-12-17
  */
 @Service
 public class RealExamCollectionService {

+ 0 - 0
ruoyi-sim/src/main/resources/mapper/sim/RealExamCollection.xml → ruoyi-sim/src/main/resources/mapper/sim/RealExamCollectionMapper.xml