简要描述:

获取周边游商品分类

请求域名:

  • http://xx.com

请求URL:

GET/plugin.decorate.admin.decorate-common.get-travel-around-category

参数:

参数名 是否必须 类型 说明
page int 分页
search{ object 搜索对象
keyword string 搜索关键词
}

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "success",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 258,
                "name": "餐饮类",
                "parent_id": 0,
                "enabled": 1,
                "is_home": 0,
                "thumb_url": "",
                "has_many_children": [
                    {
                        "id": 642,
                        "name": "北京菜",
                        "parent_id": 258,
                        "enabled": 1,
                        "is_home": 0,
                        "has_many_children": []
                    }
                ]
            }
        ],
        "first_page_url": "https://dev15.yunzmall.com/admin/shop?page=1",
        "from": 1,
        "last_page": 2,
        "last_page_url": "https://dev15.yunzmall.com/admin/shop?page=2",
        "next_page_url": "https://dev15.yunzmall.com/admin/shop?page=2",
        "path": "https://dev15.yunzmall.com/admin/shop",
        "per_page": 10,
        "prev_page_url": null,
        "to": 10,
        "total": 11
    }
}

错误时返回:

{
    "result": 0,
    "msg": "",
    "data": []
}

返回参数说明:

参数名 类型 说明
total int 数据总条数
per_page int 每页显示多少条数据
current_page int 当前页
third_show bool true 三级分类 false 两级分类

data参数说明:

参数名 类型 说明
id int 分类id
name string 分类名称
has_many_children array 子分类数组,数据结构和父级一样

备注:

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