@Resource
private MenuService menuSrv;
public IResult queryMenu(IRequest request) {
MenuItem menu = menuSrv.getMenuByRoles(CapSecurityContext.getRoleIds());
if (menu != null) {
return new AjaxFormResult(JSONSerializer.toJSON(menu).toString());
}
return new AjaxFormResult();
}