POST Doctor/NearbyHospital
获取附近的诊所
Request Information
URI Parameters
None.
Body Parameters
HospitalListPars| Name | Description | Type | Additional information |
|---|---|---|---|
| longitude |
经度 |
decimal number |
None. |
| latitude |
纬度 |
decimal number |
None. |
| lastOrd |
最后一条ID |
integer |
None. |
| pagenum |
每页数量 |
integer |
None. |
| search |
查询条件 |
string |
None. |
| order |
排序规则(传“heat”根据热度排序,其他则根据距离排序) |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"code": "200",
"data": {
"longitude": 1.0,
"latitude": 2.0,
"lastOrd": 3,
"pagenum": 4,
"search": "sample string 5",
"order": "sample string 6"
},
"msg": null
}
application/xml, text/xml
Sample:
<HospitalListPars xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Models.Parameter"> <lastOrd>3</lastOrd> <latitude>2</latitude> <longitude>1</longitude> <order>sample string 6</order> <pagenum>4</pagenum> <search>sample string 5</search> </HospitalListPars>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
获取附近的诊所
Collection of HospitalListResult| Name | Description | Type | Additional information |
|---|---|---|---|
| no |
排序 |
integer |
None. |
| Id |
主键 |
integer |
None. |
| Name |
名称 |
string |
None. |
| Logourl |
图标 |
string |
None. |
| Locaddress |
地址 |
string |
None. |
| phone |
电话 |
string |
None. |
| dis |
距离 |
decimal number |
None. |
| longitude |
经度 |
decimal number |
None. |
| latitude |
纬度 |
decimal number |
None. |
| heat |
热度 |
integer |
None. |
| isfollow |
当前用户是否关注 |
integer |
None. |
| doc_count |
医生数量 |
integer |
None. |
| follow_count |
关注数量 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": "200",
"data": [
{
"no": 1,
"Id": 2,
"Name": "sample string 3",
"Logourl": "sample string 4",
"Locaddress": "sample string 5",
"phone": "sample string 6",
"dis": 7.1,
"longitude": 8.1,
"latitude": 9.1,
"heat": 10,
"isfollow": 11,
"doc_count": 12,
"follow_count": 13
},
{
"no": 1,
"Id": 2,
"Name": "sample string 3",
"Logourl": "sample string 4",
"Locaddress": "sample string 5",
"phone": "sample string 6",
"dis": 7.1,
"longitude": 8.1,
"latitude": 9.1,
"heat": 10,
"isfollow": 11,
"doc_count": 12,
"follow_count": 13
}
],
"msg": null
}
application/xml, text/xml
Sample:
<ArrayOfHospitalListResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HL.Basis.Web.Models.Result">
<HospitalListResult>
<Id>2</Id>
<Locaddress>sample string 5</Locaddress>
<Logourl>sample string 4</Logourl>
<Name>sample string 3</Name>
<dis>7.1</dis>
<doc_count>12</doc_count>
<follow_count>13</follow_count>
<heat>10</heat>
<isfollow>11</isfollow>
<latitude>9.1</latitude>
<longitude>8.1</longitude>
<no>1</no>
<phone>sample string 6</phone>
</HospitalListResult>
<HospitalListResult>
<Id>2</Id>
<Locaddress>sample string 5</Locaddress>
<Logourl>sample string 4</Logourl>
<Name>sample string 3</Name>
<dis>7.1</dis>
<doc_count>12</doc_count>
<follow_count>13</follow_count>
<heat>10</heat>
<isfollow>11</isfollow>
<latitude>9.1</latitude>
<longitude>8.1</longitude>
<no>1</no>
<phone>sample string 6</phone>
</HospitalListResult>
</ArrayOfHospitalListResult>