# openKnowledgeBase

打开知识库 

## API 调用

### QN.app.invoke({api:'openKnowledgeBase', query})

#### API 调用入参

参数名             | 类型       | 是否可选 | 默认值 | 含义
:-------------- | :------- | :--- | :-- | :-----------------------------------------------------------------------------------------------------------------------
`query`         | `Object` |      |     |
`query.ids`  | `string` |  可选    |  '1,3,4,5,6' | 当前已经被选中的知识id,如果没有则可以不传


#### API 响应结果

参数名      | 类型  | 示例 | 含义
:------- | :-- | :----- | :---
`result` | `*` |        | 请求响应
`query.res`  | `string` |  <need>    |  <default> | 返回已选择的所有问题的对象数组


#### 调用示例

```javascript
QN.app.invoke({
      api:'openKnowledgeBase',
      query:{
                ids : ''1,3,4,5,6''  
            
      }
}).then(result => {
    console.log(result);
}, error => {
    console.log(error);
});
    
```
