Methods
(inner) get /knowledge_base_list(knowledgeBaseTypeIdopt, typeIdopt, findopt, sortNameopt, orderopt, timestamp, sign, pageSizeopt, pageopt, languageopt)
Parameters:
Name |
Type |
Attributes |
Default |
Description |
knowledgeBaseTypeId |
String(24)
|
<optional>
|
|
知识库类型ID,knowledgeBaseTypeId、typeId和find必须有一个不为空 2021/11/22 |
typeId |
String(24)
|
<optional>
|
|
知识库子类型ID,knowledgeBaseTypeId、typeId和find必须有一个不为空 2021/11/22 |
find |
String(500)
|
<optional>
|
|
查询条件,json文本,示例:{"title":{"$regex":"柴胡"}},knowledgeBaseTypeId、typeId和find必须有一个不为空 2021/11/22 |
sortName |
String(20)
|
<optional>
|
createdAt
|
排序列名,默认createdAt |
order |
Number
|
<optional>
|
-1
|
排序参数,默认-1,1 为升序排列,-1 为降序排列 |
timestamp |
String(10)
|
|
|
时间戳,值为秒值,长度10位,时间戳有效期:±10分钟 |
sign |
String(64)
|
|
|
签名 |
pageSize |
Number
|
<optional>
|
20
|
分页行数,最大100 2023/8/30 |
page |
Number
|
<optional>
|
1
|
页码 |
language |
String(20)
|
<optional>
|
|
语种,不传或无值将维持默认语种(简体中文)不会转换简繁体文字内容,目前支持:simplifiedChinese:简体中文,traditionalChinese:繁体中文 2022/2/28 |
Properties:
Name |
Type |
Description |
total |
Number
|
总行数 |
data |
Array.<Object>
|
当前页数据
Properties
Name |
Type |
Attributes |
Description |
_id |
String(24)
|
|
知识库ID |
title |
String(100)
|
|
知识库名称 |
knowledgebasetype |
Object
|
|
知识库类型
Properties
Name |
Type |
Description |
_id |
String(24)
|
知识库类型ID |
title |
String(50)
|
知识库类型名称 |
|
images |
Array.<Object>
|
<optional>
|
图片 2021/12/1
Properties
Name |
Type |
Attributes |
Description |
_id |
String(24)
|
<optional>
|
ID |
name |
String(100)
|
<optional>
|
图片名称 |
size |
String(10)
|
<optional>
|
尺寸 |
url |
String(500)
|
|
地址 |
|
|
Throws:
400 缺少knowledgeBaseTypeId
Examples
请求示例:/knowledge_base_list?knowledgeBaseTypeId=5db8f9bd6dc96f2654001caa&pageSize=5&page=1&sign=554E4E760F9AF6585F75ECA274646F1002FD12196EDECD40AC553AAF88B843B7×tamp=1570428513
返回示例:
{
"total": 8,
"data": [
{
"_id": "5dbe47e81794ad6818635d7f",
"title": "京骨",
"knowledgebasetype": {
"_id": "5db8f9bd6dc96f2654001caa",
"title": "穴位"
}
},
{
"_id": "5dbfc3399607a6510043db49",
"title": "列缺",
"knowledgebasetype": {
"_id": "5db8f9bd6dc96f2654001caa",
"title": "穴位"
}
}
]
}