简要描述:

装修列表

请求域名:

  • http://xx.com

请求URL:

GET:plugin.decorate.admin.decorate.get-list

POST:plugin.decorate.admin.decorate.get-list

参数:

参数名 是否必须 类型 说明
page_name string 页面名称
page_sort number 页面类型 1.H5 2.小程序
page_scene number 页面场景 1.首页 2.会员页
pageSize number 分页数量 默认20
page_type number 页面类型 0.其他页面 1.公众号 2.小程序 3.APP 4.支付宝 5.WAP
page int 分页

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "total": 22,
        "per_page": 5,
        "current_page": 1,
        "last_page": 5,
        "next_page_url": "http://www.yzdev8.com/addons/yun_shop/api.php?page=2",
        "prev_page_url": null,
        "from": 1,
        "to": 5,
        "data": [
            {
                "id": 1,
                "uniacid": 1,
                "page_name": "页面标题",
                "page_type": [
                    "0"
                ],
                "page_scene": 1,
                "page_sort": 1,
                "updated_at": "1970-01-01 08:00:00",
                "page_sort_depict": "H5",
                "page_scene_depict": "首页"
            },
            {
                "id": 2,
                "uniacid": 1,
                "page_name": "页面标题",
                "page_type": [
                    "0"
                ],
                "page_scene": 0,
                "page_sort": 1,
                "updated_at": "1970-01-01 08:00:00",
                "page_sort_depict": "H5",
                "page_scene_depict": null
            },
            {
                "id": 3,
                "uniacid": 1,
                "page_name": "页面标题",
                "page_type": [
                    "0"
                ],
                "page_scene": 0,
                "page_sort": 1,
                "updated_at": "1970-01-01 08:00:00",
                "page_sort_depict": "H5",
                "page_scene_depict": null
            },
            {
                "id": 4,
                "uniacid": 1,
                "page_name": "页面标题",
                "page_type": [
                    "1",
                    "2",
                    "3"
                ],
                "page_scene": 0,
                "page_sort": 1,
                "updated_at": "1970-01-01 08:00:00",
                "page_sort_depict": "H5",
                "page_scene_depict": null
            },
            {
                "id": 5,
                "uniacid": 1,
                "page_name": "页面标题",
                "page_type": [
                    "2"
                ],
                "page_scene": 1,
                "page_sort": 1,
                "updated_at": "1970-01-01 08:00:00",
                "page_sort_depict": "H5",
                "page_scene_depict": "首页"
            }
        ]
    }
}

错误时返回:

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

返回参数说明:

参数名 类型 说明
data[total] int 数据总条数
data[per_page] int 每页显示多少条数据
data[current_page] int 当前页
data[data][page_name] string 页面名称
data[data][page_type] string 页面类型 0.其他 1.公众号 2.小程序 3.APP 4.支付宝 5.WAP
data[data][page_scene] int 页面场景 1.首页 2.会员页
data[data][page_sort] int 页面分类 1.H5 2.小程序
data[data][updated_at] int 修改时间
data[data][page_sort_depict] string 页面分类的描述 = data[data][page_sort]
data[data][page_scene_depict] string 页面场景的描述=data[data][page_scene]

备注:

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