/// <summary> /// 添加角色的权限信息 /// </summary> /// <param name="context"></param> /// <returns></returns> public string AddRoleMenu(HttpContext context) { string menuIds = context.Request.Params["menuIds"]; string roleId = context.Request.Params["roleId"]; string roleName = context.Request.Params["roleName"]; bool result = roleBll.AddRoleMenu(menuIds, roleId); if (result) { string optContent = string.Format("{0}({1})修改权限信息:{2}", roleName, roleId, menuIds); AddSysLog("赋予权限", optContent); return(SuccessResult("修改成功")); } return(ErrorResult(JsonRpcErrorEnum.AddError, "修改失败")); }