简要描述:

获取蛋糕叔叔城市列表

请求域名:

  • http://xx.com

请求URL:

GET/plugin.decorate.admin.decorate-common.get-yz-supply-cake-city

参数:

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

返回示例:

正确时返回:

{
  "result": 1,
  "msg": "success",
  "data": {
    "current_page": 1,
    "data": [
      {
        "location_id": "1",
        "city": "安阳市"
      },
      {
        "location_id": "10",
        "city": "德阳市"
      },
      {
        "location_id": "100",
        "city": "宜宾市"
      },
      {
        "location_id": "101",
        "city": "宜昌市"
      },
      {
        "location_id": "102",
        "city": "镇江市"
      },
      {
        "location_id": "103",
        "city": "郑州市"
      },
      {
        "location_id": "104",
        "city": "重庆市"
      },
      {
        "location_id": "105",
        "city": "舟山市"
      },
      {
        "location_id": "106",
        "city": "株洲市"
      },
      {
        "location_id": "107",
        "city": "资阳市"
      },
      {
        "location_id": "108",
        "city": "淄博市"
      },
      {
        "location_id": "109",
        "city": "自贡市"
      },
      {
        "location_id": "11",
        "city": "东莞市"
      },
      {
        "location_id": "110",
        "city": "遵义市"
      },
      {
        "location_id": "111",
        "city": "天津市"
      },
      {
        "location_id": "1112",
        "city": "邯郸市"
      },
      {
        "location_id": "1114",
        "city": "张家口市"
      },
      {
        "location_id": "1115",
        "city": "承德市"
      },
      {
        "location_id": "1116",
        "city": "唐山市"
      },
      {
        "location_id": "1117",
        "city": "蒙自市"
      }
    ],
    "first_page_url": "https://dev15.yunzmall.com/admin/shop?page=1",
    "from": 1,
    "last_page": 21,
    "last_page_url": "https://dev15.yunzmall.com/admin/shop?page=21",
    "next_page_url": "https://dev15.yunzmall.com/admin/shop?page=2",
    "path": "https://dev15.yunzmall.com/admin/shop",
    "per_page": 20,
    "prev_page_url": null,
    "to": 20,
    "total": 415
  }
}

错误时返回:

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

返回参数说明:

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

data参数说明:

参数名 类型 说明
location_id int 城市id,搜索品牌的时候用的
city string 城市名称

备注:

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