国际酒店查询-国际酒店查询数据格式文档
类目type
key | 说明 | define |
type | 类型编号 | 15003 |
搜索模式
1. 酒店名称
搜索词示例: 帕萨迪纳酒店
意图字段
key | 类型 | 示例 |
hotel_name | string | 速8 |
意图数据
{"type":15003,"slot_list":[{"key":"hotel_name","value":"速8"}]}
2. 城市+酒店
搜索词示例: 洛杉矶酒店
意图字段
key | 类型 | 示例 |
city | string | 洛杉矶 |
意图数据
{"type":15003,"slot_list":[{"key":"city","value":"洛杉矶"}]}
数据字段
key | 类型 | 含义 | 说明 |
err_code | integer | 返回值 | 0代表正确,非0代表错误 请按如下规范返回错误码并且前端显示提示语: -1: 无结果 -2: 参数不对 -3: 系统错误 |
err_msg | string | 提示信息 | 针对于返回码的描述信息 |
hotel_list | array | 酒店列表 | 酒店列表 |
hotel_list.img_url | string | 图片 | https://xxx |
hotel_list.hotel_name | string | 名称 | 帕萨迪纳酒店 |
hotel_list.hotel_price | string | 价格 | 179元起 |
hotel_list.jump_url | string | 跳转路径 | /pages/result/result?id=xxx |
hotel_list.hotel_foreign_name | string | 外文名称 | Hotel Hwood Los Angeles |
hotel_list.hotel_description | string | 描述 | 4.6分非常棒 3980条点评 舒适型 |
jump_url | string | 跳转路径 | pages/more/more |
more_description | string | 底部更多文本 | 还有35个结果,点击查看更多 |
基于不同的搜索模式与自定义模板,开发者实际需要返回的数据字段为本文档所罗列的数据字段的子集。本文档仅做参考,开发者可在选择模板后,在微信公众平台下载相应的接口协议文档。详情见开发后台接口。