简要描述:

请求域名:

  • http://xx.com

请求URL:

GET/plugin.store-cashier.admin.category.get-list

参数:

参数名 是否必须 类型 说明
page int 页数
category_name string 分类名称

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "total": 7,
        "per_page": 4,
        "current_page": 1,
        "last_page": 2,
        "next_page_url": "http://cc.com/web/index.php?page=2",
        "prev_page_url": null,
        "from": 1,
        "to": 4,
        "data": [
            {
                "sort": 5,
                "id": 5,
                "thumb": "images/3/2017/11/geZz18Gt1Th1bh1vtXq11hxxcDqcC8.jpg",
                "name": "分类五",
                "is_open": 1,
                "store_count": 0
            },
            {
                "sort": 4,
                "id": 4,
                "thumb": "images/3/2017/11/RW3vbQVm2QKrIfx0B99d0xMaK0x0gv.png",
                "name": "分类四",
                "is_open": 1,
                "store_count": 0
            },
            {
                "sort": 3,
                "id": 3,
                "thumb": "images/3/2017/10/fYYd33ruOWSFvdAS32WjRdR2JIYbyO.png",
                "name": "分类三",
                "is_open": 1,
                "store_count": 0
            },
            {
                "sort": 2,
                "id": 2,
                "thumb": "images/3/2017/08/GRSI9Jj8Hgf42i2g64l568iIgOiGwW.jpg",
                "name": "分类二",
                "is_open": 1,
                "store_count": 1
            }
        ]
    }
}

错误时返回:

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

返回参数说明:

参数名 类型 说明
sort int 门店排序
id string 分类id
thumb string 分类图标
name string 分类名称
is_open string 1开启,0关闭
store_count string 门店数量

备注:

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