简要描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2021-03-26

请求URL:

请求方式:

  • GET

请求头:

参数名 是否必须 类型 说明
token string token参数

请求参数:

参数名 是否必须 类型 说明
get_type int 固定值 2【关键字获取】
keyword string 关键字

返回示例:

正确时返回:

关键字获取内容
{
    "status": 200,
    "msg": "获取成功",
    "data": {
        "req_type": 1,
        "info": {
            "id": 6,
            "title": "修改密码",
            "content": "<p>在【我的】->【设置】->【账户安全】->【修改登录密码】</p>"
        }
    }
}

关键字获取列表
{
    "status": 200,
    "msg": "获取成功",
    "data": {
        "req_type": 2,
        "info": [
            {
                "id": 1,
                "title": "你是谁",
                "content": "<p>你好,我是小屋</p>"
            },
            {
                "id": 2,
                "title": "小屋是谁",
                "content": "<p>你好,小屋是你的专门客服呀</p>"
            }
        ]
    }
}

错误时返回:

{
    "status": 0,
    "msg": "参数错误"
}

返回参数说明:

参数名 类型 说明
req_type int 返回类型【1=内容,2=列表】
info.id string id
info.title string 标题
info.content string 内容
info.status bool false【前端使用】

备注:

文档更新时间: 2021-03-26 14:24   作者:admin