简要描述:

请求域名:

  • http://xx.com

请求URL:

GET/plugin.universal-card.store.admin-privilege-dis.get-list

参数:

参数名 是否必须 类型 说明
page int 页数
title string 标题
store_id string 门店id
store_name string 门店名称
member_id int 店主会员id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "total": 6,
        "per_page": 10,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 6,
        "data": [
            {
                "id": 4,
                "display_order": 1,
                "title": "测试",
                "store_id": 59,
                "discount_value": "9.5",
                "is_open": 1,
                "discount_time": "号",
                "store_name": null,
                "store_thumb": ""
            },
            {
                "id": 2,
                "display_order": 1,
                "title": "测试",
                "store_id": 4,
                "discount_value": "5.0",
                "is_open": 1,
                "discount_time": "1号,2号,3号,4号,5号,6号,7号",
                "store_name": "22",
                "store_thumb": "http://cc.com/attachment/images/3/2017/08/GRSI9Jj8Hgf42i2g64l568iIgOiGwW.jpg"
            },
            {
                "id": 1,
                "display_order": 1,
                "title": "11",
                "store_id": 35,
                "discount_value": "8.5",
                "is_open": 1,
                "discount_time": "1号,4号,5号,29号,30号,31号",
                "store_name": null,
                "store_thumb": ""
            },
            {
                "id": 6,
                "display_order": 0,
                "title": "特权折扣",
                "store_id": 1,
                "discount_value": "5.0",
                "is_open": 1,
                "discount_time": "星期一,星期二,星期三,星期四,星期五,星期六,星期日",
                "store_name": "bc的门店",
                "store_thumb": "http://cc.com/attachment/images/3/2017/08/GRSI9Jj8Hgf42i2g64l568iIgOiGwW.jpg"
            },
            {
                "id": 5,
                "display_order": 0,
                "title": "测试",
                "store_id": 1,
                "discount_value": "5.0",
                "is_open": 0,
                "discount_time": "星期一,星期二,星期三,星期四,星期五,星期六",
                "store_name": "bc的门店",
                "store_thumb": "http://cc.com/attachment/images/3/2017/08/GRSI9Jj8Hgf42i2g64l568iIgOiGwW.jpg"
            },
            {
                "id": 3,
                "display_order": 0,
                "title": "测试",
                "store_id": 38,
                "discount_value": "9.5",
                "is_open": 1,
                "discount_time": "星期一,星期二,星期三",
                "store_name": null,
                "store_thumb": ""
            }
        ]
    }
}

错误时返回:

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

返回参数说明:

参数名 类型 说明
id int id
display_order int 排序
title string 活动标题
discount_value string 特权折扣
discount_time string 活动时间
is_open int 1开启,0禁用
store_name int 门店名称
store_thumb int 门店图片
store_id int 门店id

备注:

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