Browse Source

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

xuexiaobo 6 years ago
parent
commit
15302f7c30

+ 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();