Ejemplo n.º 1
0
 /**
  * 根据权限加载左树菜单
  *
  * @return
  */
 @RequestMapping(value = "/menus/loadByAuthc")
 @ResponseBody
 List<FwAuthcMenu> loadMenusByAuthc() {
   FwAuthcUser user = shiroService.getCurUser();
   if (user.getId().equals("0")) {
     return loadAllMenus();
   } else return null;
 }
Ejemplo n.º 2
0
 @RequestMapping(value = "/login", method = RequestMethod.POST)
 @ResponseBody
 String login(String username, char[] password, String vcode) {
   return shiroService.login(username, password, vcode).toString();
 }