简要描述:
搜索门店列表
请求域名:
- http://xx.com
请求URL:
plugin.decorate.admin.decorate-common.search-store
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | 否 | int | 分页 (每页固定20条) |
store_name | 否 | string | 门店名称 (搜索使用,模糊匹配) |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"total": 6,
"per_page": 20,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 6,
"data": [
{
"id": 12,
"uid": 163902,
"store_name": "门店测试1234",
"thumb": "http://www.yzdev8.com/static/upload/images/1/2020/05/t2294es9s5ZkZA92B9al9kLkPfixj2.jpg",
"full_address": "北京北京市东城区!!",
"mobile": "13148513751"
},
{
"id": 11,
"uid": 163918,
"store_name": "测试的的",
"thumb": "https://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/34d9c6abc7875ddf2434fb6a26d9f3d0.jpg",
"full_address": "北京北京市东城区!!",
"mobile": "15789567149"
},
{
"id": 10,
"uid": 163901,
"store_name": "test1322",
"thumb": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/1ad5192511039eb281049c946a0d964c.jpg",
"full_address": "北京北京市东城区!!",
"mobile": "13229222151"
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "暂无数据",
"data": []
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
data[total] | int | 数据总条数 |
data[per_page] | int | 每页显示多少条数据 |
data[current_page] | int | 当前页 |
data[data][id] | int | 门店id |
data[data][uid] | int | 用户id |
data[data][store_name] | string | 门店名称 |
data[data][mobile] | string | 电话 |
data[data][thumb] | string | 门店图片 |
data[data][full_address] | string | 门店地址 |