热点排行接口

服务描述

此接口获取热点排行知识

开发须知

调用本接口前,请先获取appId

服务地址

POST https://{您的专属域名}/kms/openapi/v1/integration/classification/list

请求参数

参数 位置 类型 是否必填 说明
appId header String Y 应用ID
timestamp header String Y 时间戳,毫秒
sign header String Y 签名
Content-Type header String Y application/json
robotId body String Y 机器人id
categoryIdList body list N 知识分类数组
standardAsk body String N 搜索内容(标准问)
queryAnswer body String N 搜索内容(答案)
similarityQuestion body String N 搜索内容(相似问)
pageSize body Integer N 分页大小(默认20)
pageNum body Integer N 分页号码(默认1)
orderByHit body Integer N 命中次数排序 0:降序 1:升序

返回结果

参数 类型 说明
code String 结果码
message String 结果描述
data Page 分页对象
Page
参数 类型 说明
size Integer 当前页记录数
total Long 总记录数
list BotIntegrationClassificationExt 数据集合
BotIntegrationClassificationExt
参数 类型 说明
id Long 知识ID
categoryId Long 分类ID
standardAsk String 标准问
standardAnswer String 标准回答
similarityCount Integer 相似问数量
categoryName String 分类名称
sessionLabelName String 标签名字
createTime Date 创建时间
updateTime Date 更新时间
permanent Boolean 是否永久有效
validStartTime Date 生效开始时间
validEndTime Date 生效结束时间
status Short 停用状态(0正常;1停用)
hitCount Long 命中次数
响应示例
{
    "code": "10000",
    "message": "ok",
    "data": {
        "pageNum": 1,
        "pageSize": 20,
        "size": 5,
        "orderBy": null,
        "startRow": 1,
        "endRow": 5,
        "total": 5,
        "pages": 1,
        "list": [
            {
                "id": 297312,
                "tenantId": "msxf156724068167373297329",
                "robotId": "NEWb043c3c4d4a91b0d484a636040df2",
                "categoryId": 16567,
                "standardAsk": "开通ETC",
                "replyMethod": 1,
                "sessionLabelId": "",
                "sessionLabelName": "",
                "createTime": "2021-07-13T09:40:53.000+0000",
                "updateTime": "2021-07-13T09:40:53.000+0000",
                "isDeleted": false,
                "permanent": true,
                "validStartTime": null,
                "validEndTime": null,
                "status": 0,
                "categoryIdList": null,
                "advanceQuery": null,
                "queryAnswer": null,
                "similarityQuestion": null,
                "conditionAndList": null,
                "conditionOrList": null,
                "pageSize": null,
                "pageNum": null,
                "topNum": 20,
                "standardAnswer": "<p>开通ETC-答案</p>",
                "similarityCount": 0,
                "hitCount": null,
                "categoryName": "未分类",
                "knowledgeStatus": 1
            }
        ],
        "firstPage": 1,
        "prePage": 0,
        "nextPage": 0,
        "lastPage": 1,
        "isFirstPage": true,
        "isLastPage": true,
        "hasPreviousPage": false,
        "hasNextPage": false,
        "navigatePages": 8,
        "navigatepageNums": [
            1
        ]
    }
}
结果码说明
结果码 说明
10000 请求成功
10001 鉴权失败
10002 找不到对应的公钥,请先上传公钥
20001 请求失败
20002 参数错误
20003 未查询到符合条件的记录

results matching ""

    No results matching ""