diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdUserExamController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdUserExamController.java new file mode 100644 index 0000000..5690aee --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TdUserExamController.java @@ -0,0 +1,29 @@ +package com.ruoyi.web.controller.system; + +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.entity.SysUser; +import com.ruoyi.system.service.ITdQuestionService; +import org.apache.shiro.authz.annotation.RequiresPermissions; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.ui.ModelMap; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.RequestMapping; + +@Controller +@RequestMapping("/system/userexam") +public class TdUserExamController extends BaseController { + private String prefix = "system/exam"; + + @RequiresPermissions("system:userexam:view") + @GetMapping() + public String index(ModelMap mmap) { + //获取用户信息 + SysUser user = getSysUser(); + mmap.put("user", user); + //跳转考试界面 + return prefix + "/index"; + + } + +}