5.4 获取门店列表(仅限O2O)
<p>[TOC]</p>
<h3>5.4 获取门店列表(仅限O2O)</h3>
<p>> - Url路径:{appKey}/getBranch</p>
<h4>5.4.1 接口请求模型</h4>
<table>
<thead>
<tr>
<th>参数代码 </th>
<th>参数类型参数类型 </th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>isDelivery </td>
<td>int </td>
<td>1 </td>
<td>Y </td>
<td>Y </td>
<td>仅查询支持闪送(默认0:否,1:是) </td>
</tr>
<tr>
<td>customerInfos</td>
<td>getBranchCustomerInfo</td>
<td> </td>
<td>Y </td>
<td> </td>
<td>闪送目标地(当仅查询支持闪送为1时必传)</td>
</tr>
</tbody>
</table>
<p>getBranchCustomerInfo</p>
<table>
<thead>
<tr>
<th>参数代码 </th>
<th>参数类型参数类型</th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>longitude</td>
<td>number </td>
<td>9,5 </td>
<td> </td>
<td> </td>
<td>收件经度 </td>
</tr>
<tr>
<td>latitude </td>
<td>number </td>
<td>9,5 </td>
<td> </td>
<td> </td>
<td>收件纬度 </td>
</tr>
<tr>
<td>mapType </td>
<td>int </td>
<td>1 </td>
<td>Y </td>
<td> </td>
<td>经纬度类型(默认0:高德,1:百度)</td>
</tr>
</tbody>
</table>
<h4>5.4.2 接口返回模型</h4>
<table>
<thead>
<tr>
<th>参数代码</th>
<th>参数类型参数类型 </th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>branchs </td>
<td>List<getBranchModel></td>
<td> </td>
<td> </td>
<td>Y </td>
<td>符合条件的门店列表</td>
</tr>
</tbody>
</table>
<p>getBranchModel </p>
<table>
<thead>
<tr>
<th>参数代码 </th>
<th>参数类型参数类型</th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>pharmacyCode</td>
<td>string </td>
<td>4 </td>
<td> </td>
<td>Y </td>
<td>门店号 </td>
</tr>
<tr>
<td>pharmacyName</td>
<td>string </td>
<td>20 </td>
<td> </td>
<td>Y </td>
<td>门店名称 </td>
</tr>
<tr>
<td>longitude </td>
<td>number </td>
<td>9,5 </td>
<td> </td>
<td> </td>
<td>门店经度(高德坐标系) </td>
</tr>
<tr>
<td>latitude </td>
<td>number </td>
<td>9,5 </td>
<td> </td>
<td> </td>
<td>门店纬度(高德坐标系) </td>
</tr>
<tr>
<td>polygons </td>
<td>string </td>
<td>500 </td>
<td> </td>
<td> </td>
<td>门店闪送电子围栏 </td>
</tr>
<tr>
<td>onlineTime </td>
<td>string </td>
<td>11 </td>
<td> </td>
<td>Y </td>
<td>门店营业时间(HH:mm-HH:mm) </td>
</tr>
<tr>
<td>isCenter </td>
<td>int </td>
<td>1 </td>
<td>Y </td>
<td>Y </td>
<td>中心店标识(0:否,1:是) </td>
</tr>
<tr>
<td>isFull </td>
<td>int </td>
<td>1 </td>
<td>Y </td>
<td>Y </td>
<td>24小时门店(0:否,1:是) </td>
</tr>
<tr>
<td>address </td>
<td>string </td>
<td>200 </td>
<td> </td>
<td> </td>
<td>地点地址 </td>
</tr>
<tr>
<td>tel </td>
<td>string </td>
<td>20 </td>
<td> </td>
<td> </td>
<td>地点电话 </td>
</tr>
<tr>
<td>status </td>
<td>int </td>
<td>1 </td>
<td>Y </td>
<td>Y </td>
<td>地点状态(0:关闭 1:待填资料 2:开启)</td>
</tr>
<tr>
<td>statusName </td>
<td>string </td>
<td>20 </td>
<td> </td>
<td> </td>
<td>状态说明 </td>
</tr>
<tr>
<td>stateId </td>
<td>int </td>
<td>6 </td>
<td> </td>
<td> </td>
<td>省份ID </td>
</tr>
<tr>
<td>stateName </td>
<td>string </td>
<td>20 </td>
<td> </td>
<td> </td>
<td>省份名称 </td>
</tr>
<tr>
<td>cityId </td>
<td>int </td>
<td>6 </td>
<td> </td>
<td> </td>
<td>城市ID </td>
</tr>
<tr>
<td>cityName </td>
<td>string </td>
<td>20 </td>
<td> </td>
<td> </td>
<td>城市名称 </td>
</tr>
<tr>
<td>districtId </td>
<td>int </td>
<td>6 </td>
<td> </td>
<td> </td>
<td>区县ID </td>
</tr>
<tr>
<td>districtName</td>
<td>string </td>
<td>20 </td>
<td> </td>
<td> </td>
<td>区县名称 </td>
</tr>
</tbody>
</table>
<h4>5.4.3 Demo:</h4>
<p>Request:</p>
<pre><code>{
&quot;appKey&quot;:&quot;NepHealth&quot;,
&quot;nonce&quot;:&quot;Tdsad2saa2a&quot;,
&quot;timestamp&quot;:1639119614,
&quot;sign&quot;:&quot;a1f8f760de8edfe74b3b7bb9d9c51e4379abfbdb1&quot;,
&quot;input&quot;:{
&quot;isDelivery&quot;:0
}
}</code></pre>
<p>Response:</p>
<pre><code>{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;ok&quot;,
&quot;nonce&quot;: &quot;Tdsad2saa2a&quot;,
&quot;output&quot;: {
&quot;branchs&quot;: [{
&quot;isCenter&quot;: 0,
&quot;tel&quot;: &quot;0755-86575574&quot;,
&quot;stateId&quot;: 98,
&quot;cityId&quot;: 903,
&quot;pharmacyCode&quot;: &quot;SA79&quot;,
&quot;longitude&quot;: 114.137994,
&quot;latitude&quot;: 22.624985,
&quot;statusName&quot;: &quot;开启&quot;,
&quot;stateName&quot;: &quot;广东省&quot;,
&quot;cityName&quot;: &quot;深圳市&quot;,
&quot;districtId&quot;: 2958,
&quot;districtName&quot;: &quot;龙岗区&quot;,
&quot;polygons&quot;: &quot;114.167252 22.624933,114.166614 22.630543,114.164725 22.635907,114.16167 22.640791,114.159469 22.642448,114.156758 22.640693,114.153579 22.639344,114.149834 22.637506,114.147499 22.635447,114.141179 22.632055,114.13079 22.636099,114.122242 22.639913,114.114377 22.637939,114.111321 22.635907,114.109433 22.630543,114.108794 22.624933,114.109433 22.619324,114.111321 22.61396,114.114377 22.609075,114.118465 22.604883,114.123409 22.601568,114.128991 22.599274,114.134968 22.598101,114.141079 22.598101,114.147056 22.599274,114.152638 22.601568,114.157581 22.604883,114.16167 22.609075,114.164725 22.61396,114.166614 22.619324&quot;,
&quot;onlineTime&quot;: &quot;00:00-23:59&quot;,
&quot;address&quot;: &quot;深圳市龙岗区南湾街道南岭村社区布澜路7号岭宏健康家园9栋东兴街40、41&quot;,
&quot;isFull&quot;: 1,
&quot;pharmacyName&quot;: &quot;健康花城店&quot;,
&quot;status&quot;: 2
}]
}
}</code></pre>