Example #1
0
 /*
  * 获取角色菜单
  */
 @Action(
     value = "/role/getUserRole",
     results = {
       @Result(
           name = "array",
           type = "json",
           params = {"root", "array"})
     })
 public String getUserRoles() {
   array = new JSONArray();
   List<Role> roles = roleService.findAllListForBox((byte) -1);
   Entity2JSONUtil.role2JSON1(roles, array);
   return "array";
 }