资源列表

# 资源列表 ### 请求地址 | HTTP Method | Path | | :---------- | :--------------- | | GET | /api/v1/resource | ### 请求参数 | 参数名称 | 类型 | 必填 | 描述 | | :-------- | :----- | :--- | :---------------------------------------- | | pageIndex | int | 是 | 当前页码,从1开始 | | pageSize | int | 是 | 每页数量,10-100 | | cityCode | int | 否 | 城市编码 | | longitude | double | 否 | 经度 | | latitude | double | 否 | 纬度 | | distance | double | 否 | 距离(米) 经纬度不为空时生效,默认1000 | | type | int | 是 | 资源类型:1-景区 2-酒店 3-餐饮 | ### 请求Body 无 ### 响应Body,Data部分 | 参数名称 | 类型 | 描述 | | :------- | :----- | :------- | | total | int | 总数 | | list | *Resources*[] | 资源集合 | *Resources* | 参数名称 | 类型 | 描述 | | :-------- | :------- | :--------------------------------- | | id | int | 资源ID | | type | int | 资源类型:1-景区 2-酒店 3-餐饮 | | name | string | 名称 | | cityCode |int | 城市代码 | | address | string | 详细地址 | | longitude | double | 经度 | | latitude | double | 纬度 | ### 业务错误码 无 ### 请求示例 ``` http GET http://test.openapi.huitravel.com/api/v1/resource?cityCode=810100&type=2&pageIndex=1&pageSize=10 HTTP/1.1 accessKeyId: 7568512625 signatureNonce: 0.7183088840536349 timestamp: 2020-11-27T03:22:27Z signature: 2abec53eec75e79b8d6219fd06f4c2424c5711a3 ... ``` ``` json HTTP/1.1 200 OK { "requestId": "d02f9ae8-e4fa-465d-b8f9-fa6462bbb49a", "data": { "list": [ { "id": 2514, "type": 2, "name": "香港泰山宾馆喜利店", "cityCode":810100, "address": "香港九龙尖沙咀弥敦道81号喜利大厦9楼A&B", "longitude": 22.300429, "latitude": 114.1833617 }, { "id": 2515, "type": 2, "name": "香港尚御酒店", "cityCode":810100, "address": "香港九龙佐敦柯士甸道105号百安大厦B座3楼B1-2室", "longitude": 22.306657, "latitude": 114.184123 }, { "id": 2516, "type": 2, "name": "香港汉仁宾馆", "cityCode":810100, "address": "香港油尖旺区弥敦道525-545宝宁大厦A座701-703室(油麻地地铁B1出口)", "longitude": 22.316019, "latitude": 114.181932 } ], "total": 1324 } } ```