简要描述:

  • 供应链-知识库-首页

请求URL:

GET/route=plugin.project-template.frontend.knowledge.searchKnowledgeBaseList

参数:

参数名 是否必须 类型 说明
page int 分页
title string 知识库名称

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "title": "测试",
                "created_at": "2022-08-25 13:49:55",
                "knowledge_base_id": 2,
                "has_one_yz_supply_knowledge_base": {
                    "id": 2,
                    "title": "测试",
                    "status": 1
                }
            },
            {
                "id": 2,
                "title": "测试",
                "created_at": "2022-08-25 13:49:55",
                "knowledge_base_id": 2,
                "has_one_yz_supply_knowledge_base": {
                    "id": 2,
                    "title": "测试",
                    "status": 1
                }
            }
        ],
        "first_page_url": "http://shop/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://shop/addons/yun_shop/api.php?page=1",
        "next_page_url": null,
        "path": "http://shop/addons/yun_shop/api.php",
        "per_page": 15,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    }
}

knowledge_base_article:

参数名 类型 说明
id int 专题id
title string 文章名称
release_time_at string 发布时间
banner string 背景图
has_one_yz_supply_knowledge_base array

has_one_yz_supply_knowledge_base:

参数名 类型 说明
id int 专题id
title string 知识库名称
banner string 封面