Просмотр исходного кода

获取认证列表接口添加权限认证

xuexiaobo 6 лет назад
Родитель
Сommit
15302f7c30
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      site/src/main/java/com/mooctest/crowd/site/controller/UserController.java

+ 4 - 0
site/src/main/java/com/mooctest/crowd/site/controller/UserController.java

@@ -210,11 +210,15 @@ public class UserController {
         return userService.rejectEnterpriseAuth(userId);
         return userService.rejectEnterpriseAuth(userId);
     }
     }
 
 
+    @LoginRequired
+    @SysAdminRequired
     @RequestMapping(value = "/user/authentication/handling", method = RequestMethod.GET)
     @RequestMapping(value = "/user/authentication/handling", method = RequestMethod.GET)
     public List<BaseAuthVO> getAuthingList(){
     public List<BaseAuthVO> getAuthingList(){
         return userService.getAuthingList();
         return userService.getAuthingList();
     }
     }
 
 
+    @LoginRequired
+    @SysAdminRequired
     @RequestMapping(value = "/user/authentication/handled", method = RequestMethod.GET)
     @RequestMapping(value = "/user/authentication/handled", method = RequestMethod.GET)
     public List<BaseAuthVO> getAuthedList(){
     public List<BaseAuthVO> getAuthedList(){
         return userService.getAuthedList();
         return userService.getAuthedList();