Module: 知识库获取^2022/12/17

Since:
  • 2022/12/17
Author:
  • zz

Methods

(inner) get /knowledge_base_load(knowledgeBaseId, languageopt, timestamp, sign)

Parameters:
Name Type Attributes Description
knowledgeBaseId String(24) 知识库ID
language String(50) <optional>
语种,不传或无值将维持默认语种(简体中文)不会转换简繁体文字内容,目前支持:simplifiedChinese:简体中文,traditionalChinese:繁体中文 2022/2/28
timestamp String(10) 时间戳,值为秒值,长度10位,时间戳有效期:±10分钟
sign String(64) 签名
Properties:
Name Type Description
_id String(24) 知识库ID
code String(50) 编号
title String(100) 知识库名称
knowledgebasetype Object 知识库类型
Properties
Name Type Description
_id String(24) 知识库类型ID
title String(100) 知识库类型名称
images Array.<Object> 图片
Properties
Name Type Description
_id String(24) ID
name String(100) 图片名称
size String(10) 尺寸
url String(500) 地址
content String(20000) 内容 2022/12/17
Throws:
400 缺少knowledgeBaseId
Examples
请求示例:/knowledge_base_load?knowledgeBaseId=5dbe47e81794ad6818635d7f&timestamp=1570429406&sign=725085C8A709A4F16183B26FBB9E67A156A2F3D82D47CE00A067902EA006FA15
返回示例:
  {
    "_id": "5dbe47e81794ad6818635d7f",
    "title": "京骨",
    "images": [
      {
        "_id": "5dbe5babe2823e3908fc73dd",
        "name": "BL64.png",
        "size": 12586,
        "url": "http://localhost:3000/uploads/950e10938da90e184df802b2f00a8c67"
      }
    ],
    "code": "BL64",
    "content": "<p>京骨,Jinggu,BL64,属足太阳膀胱经。</p><p><br></p><p>在足外侧,第5跖骨粗隆下方,赤白肉际处。正...",
    "knowledgebasetype": {
      "_id": "5db8f9bd6dc96f2654001caa",
      "title": "穴位"
    }
  }