简要描述:

搜索短视频分类

请求域名:

  • http://xx.com

请求URL:

GET/plugin.decorate.admin.decorate-common.search-video-share-category

参数:

参数名 是否必须 类型 说明
page int 分页 (每页固定15条)
keyword string 分类名称关键词

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 1,
                "name": "测试",
                "is_show": 1,
                "sort": 0
            }
        ],
        "first_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "http://demo.yun.cn/addons/yun_shop/api.php?page=1",
        "next_page_url": null,
        "path": "http://demo.yun.cn/addons/yun_shop/api.php",
        "per_page": 15,
        "prev_page_url": null,
        "to": 1,
        "total": 1
    }
}

错误时返回:

{
    "result": 0,
    "msg": "暂无数据",
    "data": []
}

返回参数说明:

参数名 类型 说明
total int 数据总条数
per_page int 每页显示多少条数据
current_page int 当前页

data参数说明:

参数名 类型 说明
id int 分类ID
name string 分类名称
is_show int 是否显示 1开0关
sort int 排序

备注:

商品分类目前最高为3级分类

  • 更多返回错误代码请看首页的错误代码描述