简要描述:
搜索酒店列表
请求域名:
- http://xx.com
请求URL:
plugin.decorate.admin.decorate-common.search-hotel
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
page | 否 | int | 分页 (每页固定20条) |
hotel_name | 否 | string | 酒店名称 (搜索使用,模糊匹配) |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"total": 3,
"per_page": 15,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 3,
"data": [
{
"id": 3,
"uid": 163814,
"hotel_name": "测试",
"thumb": "http://www.yzdev8.com/static/upload/images/1/2019/04/kC95a1h4eEA8z9eHc5feFFE5aEA57c.jpg"
},
{
"id": 2,
"uid": 163781,
"hotel_name": "丽唧唧精品酒店",
"thumb": "http://www.yzdev8.com/storage/app/avatars/hotel_apply80bSuBDg44"
},
{
"id": 1,
"uid": 163777,
"hotel_name": "酒店管理",
"thumb": "http://www.yzdev8.com/storage/app/avatars/hotel_applyF5SFuYcSjh"
}
]
}
}
错误时返回:
{
"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][hotel_name] | string | 酒店名称 |
data[data][thumb] | string | 酒店图片 |
data[data][full_address] | string | 酒店地址 |